You are here
Ok, after I build the Django Turnkey, I went into Python to verify it has Django installed. It was.
>>> import django
>>> django.VERSION
(1, 4, 5, 'final', 0)
>>>
I assumed at this point that django, and it's associated admin tool was installed, so I did the
following commands..
jdcrunchman@django ~$ mkdir django_test
jdcrunchman@django ~$ cd django_test
jdcrunchman@django ~/django_test$ django-admin.py startproject testsite
-bash: django-admin.py: command not found
So, obviously, there is one step I'm not doing. Can someone please help me
determine what step I'm missing?
Also, is there a LIVE forum, using some text chat mechanism?
Please email to jdcrunchman@gmail.com unless there is a way to get these responses directly
to my mailbox.
There are so many things I
There are so many things I don't know. I was using DjangoDoc.com and I followed it, but it is wrong. Because I did... django-admin.py startproject mysite
Instead of....... django-admin startproject mysite
I didn't realize there was so many differences, since my best docmentation on Django is
Djangobook.com
Unless there is a new one... I wonder how many other differences there are.
john
Sorry John I'm not that up with Django
So unfortunately I'm probably not a lot of help to you... But if you have a look at the appliance page you can see that there is an example Django project in /var/www/project which might be of some value to you?
In this appliance, Django is installed from default Debian repos so the version is 1.4.5. If you find docs that match to that version you should be good to go. Armed with that info google is probably as good a place as any to get help with it.
And as for getting email notifications of forum posts, it should happen automatically. FWIW we did try an IRC channel but it wasn't really used much so it ended up abandoned.
Turnkey Django
So, it appears that I'm the only one to first start using Turnkey Django. is there anyone else in this forum whos had django experience who can get me over these numerous "gotchas" I'm experiencing?
For instance, when I initially started building the Turnkey Django, during the setting up of the passwords, and the database, I also setup a password for the mySQL user 'django', but thats what f**ked it all up.
By changing that password, it breaks the Administration page, because somewhere in there, it was trying to use this auto-generated password, but there was no mention in any document that says I should not muck with it, and being a person that would "F**K up a wet dream" I very stupidly changed that password which broke everything.
Also, in the python manual, they warn us not to develop our source in the /var/www path for security reasons, and yet this was where Turnkey decided to put in their example. This, of course caused me great confusion. Perhaps a dummy user level account like "django_user" with the Example program in there, might be more appropriate (and less confusing to the likes of me).
I've built and setup other Django systems, but this was way back in 2008, and lots has changed since then, so when I attempted to change the 'django' user password using WebMin, thats what F**ked it up. I mean, I thought that was the right thing to do at the time, but BOY, was I wrong!!!
I've gotten several responses from Alon on how to fix it, but still waiting for access to a REAL computer to get on and try these things.
Add new comment