Currently it works with PostgreSQL 8.1, but shouldn't be too hard to
extend to work with other database systems.
djschemadiff can be downloaded from
<http://robots.org.uk/src/djschemadiff/>. Feel free to send me any
comments, flames or patches!
--
Sam Morris
http://robots.org.uk/
PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
I think this might be a bug. Unexpected behaviour at least.
When I delete default Site object ('example.com'), generic login view raises
exception, as it is looking for Site with pk=1.
Hello!
I'm still a little new, but I believe the generic views for auth rely
upon the sites module to work. I've always just renamed the default
Site, and things Just Work. Adrian or Jacob might be able to answer
this better than I?
--
Michael
We really need to document this a little better; if you delete that
Site object, you'll have to create a new one and change the SITE_ID
setting in your settings file to match the id of that new object,
because lots of things use that to look up site-specific content.
The preferred method is simply to edit the default Site object to have
the correct domain name.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
On 4/19/07, mojo <mojo...@gmail.com> wrote:I think this might be a bug. Unexpected behaviour at least.When I delete default Site object ('example.com'), generic login view raisesexception, as it is looking for Site with pk=1.We really need to document this a little better; if you delete thatSite object, you'll have to create a new one and change the SITE_IDsetting in your settings file to match the id of that new object,because lots of things use that to look up site-specific content.The preferred method is simply to edit the default Site object to havethe correct domain name.
Hi,In Django version 0.97-pre, rev 5020, I'm adding additional views for end users, all decorated with @login_required.I noticed if I'm not already logged in (by 1st visiting .../admin/), I get below error (reproduced in a python terminal, same problem as in a browser - [17/Apr/2007 10:22:43] "GET /accounts/login/?next=/GUI/start/ HTTP/1.1" 500 51242 gives:DoesNotExist at /accounts/login/Site matching query does not exist.
Request Method: GET Request URL: Exception Type: DoesNotExist Exception Value: Site matching query does not exist. Exception Location: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/models/query.py in get, line 252).