Re: Best practice: Models.py vs View.py?

2013-09-11 Thread Marco Fucci
The models module is not limited to back-end data, it can include all kinds of models so your Page class can definitely be in it. For the helpers, it really depends on your code. If they are simple enough and used only in your views, it may be OK to place them in views.py whereas if they are co

Re: error python manage.py syncdb

2013-09-11 Thread Marco Fucci
A few things might be causing the problem: - is settings.SECRET_KEY empty? If so, it's easy enough to fix - in your settings, you might be importing a custom module *before* defining the SECRET_KEY causing dependency problems - you're doing something wrong in your settings (e.g. impor