How I could reset django admin pass in a buildout project

124 views
Skip to first unread message

Ashkan Roshanayi

unread,
Dec 29, 2011, 10:43:52 AM12/29/11
to django...@googlegroups.com
Hi, basically my project is that I don't know how can I access django shell in a buildout project!

Marry Christmas :)

--
Ashkan

Reinout van Rees

unread,
Dec 29, 2011, 11:15:21 AM12/29/11
to django...@googlegroups.com
On 29-12-11 16:43, Ashkan Roshanayi wrote:
> Hi, basically my project is that I don't know how can I access django shell in a buildout project!

I assume you're using djangorecipe? In that case: bin/django. That's the
equivalent of "python manage.py", only with the right enviroment
variable to your settings file pre-set.


So: "bin/django shell".

Reinout

--
Reinout van Rees http://reinout.vanrees.org/
rei...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

Ashkan Roshanayi

unread,
Dec 29, 2011, 11:48:54 AM12/29/11
to django...@googlegroups.com
Ouch! now I get:

Traceback (most recent call last):
  File "./bin/django", line 35, in <module>
    import djangorecipe.manage
ImportError: No module named djangorecipe.manage

should I set something in project/settings.py?

Best,

Reinout van Rees

unread,
Dec 29, 2011, 12:32:55 PM12/29/11
to django...@googlegroups.com

That error is normally impossible. You must have removed something by hand?

Could you look inside the bin/django script? It ought to have a
"sys.path" list in there that shows you where it thinks it can find the
djangorecipe. Make sure it is still there.

Or re-run your buildout, for instance.

Reply all
Reply to author
Forward
0 new messages