Giter VIP home page Giter VIP logo

Comments (6)

Fantomas42 avatar Fantomas42 commented on May 26, 2024

Hi Nosrevelk

what is the version of django your are running ? And your version of mptt.

And can you paste the full traceback somewhere for having more informations ?

from django-blog-zinnia.

Nosrevelk avatar Nosrevelk commented on May 26, 2024

Django 1.2.3 (mod_wsgi 3.2/Python 2.6) (running on webfaction shared plan)

import mptt
print mptt.VERSION
(0, 3, 1)

Link to full trackback:
http://dpaste.com/287673/

Thanks Fanto!

Obs. I just read in another issue you saying we should use mptt 0.4.1, so I'm going to try the newest one and see if that will fix it.
Obs2. Well same error with mptt 0.4.2 - http://dpaste.com/287695/

from django-blog-zinnia.

Fantomas42 avatar Fantomas42 commented on May 26, 2024

I have just finish to read your tracebacks,
and I have a question, do you have modified the admin ?

It seems that is the get_sites method which fails miserably. Your traceback say that method is located at line 98 but in my version is at line 113.

But what seems the most weird for me, is that Site table have no relations with the Entry table but have a relation with the Comment table...

For the now, I don't see the origin of this behavior.

from django-blog-zinnia.

Nosrevelk avatar Nosrevelk commented on May 26, 2024

Hmmm, well I changed the models.py to autoselect the site:

sites = models.ManyToManyField(Site, default=str(Site.objects.get_current().id),
        verbose_name=_('sites publication'))

I tried to update the admin/entry.py but i'm getting an error so hmmm... better run a few tests... i'll let you know if i find anything.

Thanks again!!!

Obs. I think it will be faster to start a project from zero and now that I know the structure a little I won't mess around too much.

from django-blog-zinnia.

Fantomas42 avatar Fantomas42 commented on May 26, 2024

I think it's coming from this modification, because I have already experienced this kind of issue with this your example code.

The good news for you is that autoselection for site is now implemented in this commit.
252b8e1

Update your code and tell me if it works fine.

Have a nice day.

from django-blog-zinnia.

Nosrevelk avatar Nosrevelk commented on May 26, 2024

Yeah I just saw :)

I'm skinning the blog atm on local.

Thanks again for your help Fanto.

from django-blog-zinnia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.