Missing 'SITE_ID' breaks first Django app

171 views
Skip to first unread message

DF

unread,
Jul 6, 2012, 1:38:00 AM7/6/12
to django...@googlegroups.com

Hi. I just delayed my first Django app via Heroku and I'm having an issue that's proving very difficult to resolve. I have django-registration and profiles installed and apparently something runs afoul unless the 'django.contrib.sites', and SITE_ID is removed from settings (this wasn't the case prior to deployment). Unfortunately, when content is submitted from a user to be displayed. I'm getting the following error:: 

TemplateSyntaxError at /Caught AttributeError while rendering: 'Settings' object has no attribute 'SITE_ID'. 

Adding these back just kills the whole app. Looking to see if anyone had any insight or advice on how to resolve this.

Melvyn Sopacua

unread,
Jul 6, 2012, 7:43:05 AM7/6/12
to django...@googlegroups.com
On 6-7-2012 7:38, DF wrote:

> Hi. I just delayed my first Django app via Heroku and I'm having an issue
> that's proving very difficult to resolve. I have django-registration and
> profiles installed and apparently something runs afoul unless the
> 'django.contrib.sites', and SITE_ID is removed from settings (this wasn't
> the case prior to deployment).

But what is the error here? Site doesn't display? server errors?
--
Melvyn Sopacua


Thomas Orozco

unread,
Jul 8, 2012, 5:47:03 AM7/8/12
to django...@googlegroups.com

What is kills the whole app supposed to mean?

Just pulling this out of thin air, but do you have a record in your database (sites)  that corresponds to your SITE_ID setting (when you add it)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages