Re: Unable to get python manage.py runserver to work
You need to create a project before you do anything. The docs and tutorials show you how to so it .
On 12 Jul 2013 18:51, "Yves S. Garret" <yoursurrogategod@gmail.com> wrote:
-- On Friday, July 12, 2013 1:48:13 PM UTC-4, Yves S. Garret wrote:
On Friday, July 12, 2013 5:18:58 AM UTC-4, Tom Evans wrote:On Fri, Jul 12, 2013 at 4:01 AM, Yves S. Garret
<yoursurr...@gmail.com> wrote:
> I was able to import django from inside of python 2.6.6 (which is what I'm
> going with
> at the moment). However, when I try to display something in a browser, this
> is the
> problem that I'm getting:
>
> $ python /path/to/file/manage.py runserver
> Traceback (most recent call last):
> File
> "/home/azureuser/Downloads/django/Django-1.5.1/django/conf/project_template/manage.py",
You *MUST* install django before trying to use it.
You will need to create a real project using django-admin.py, instead
of trying to run manage.py from the application template stubs.
Please take a look at the tutorial intro, which describes how to install django
https://docs.djangoproject.com/en/1.5/intro/install/
Next, look at the tutorial itself, which describes how to start your
first project.
https://docs.djangoproject.com/en/1.5/intro/tutorial01/
These steps are not optional.
Cheers
Tom
I have it down to this level, where I can import django from inside of python:
$ python
Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print(django.get_version())
1.5.1--
Ultimately, this is what I'd like to have running on my machine.
http://django-dynamic-scraper.readthedocs.org/en/latest/getting_started.html#installation
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home