How To Activate Django Server.

56 views
Skip to first unread message

Steve Burrus

unread,
Jun 25, 2015, 12:07:05 PM6/25/15
to django...@googlegroups.com
I am sorry that I hjave to ask about this, since I was recently able to do it, but I have to ask how do I go about going from successfully creating a new virtual environment to then being able to connect to the Django server? I have seen countless videos, on youtube, on how this is done but I simply  forgot.



ybdr...@gmail.com

unread,
Jun 25, 2015, 3:45:52 PM6/25/15
to django...@googlegroups.com
On 06/25/15 18:07, Steve Burrus wrote:
I am sorry that I hjave to ask about this, since I was recently able to do it, but I have to ask how do I go about going from successfully creating a new virtual environment to then being able to connect to the Django server? I have seen countless videos, on youtube, on how this is done but I simply  forgot.


python manage.py runserver

dragon

Steve Burrus

unread,
Jun 25, 2015, 4:36:08 PM6/25/15
to django...@googlegroups.com
No i am sorry but python manage.py runserver doesn't work! I first tried to run it in a newly created virtual environment, it failed. so I just tried to run it in the Desktop folder but it still failed. I remember a command which had in it "django-admin.py" that I need to type right?

 "C:\Users\SteveB\Desktop>python manage.py runserver
python: can't open file 'manage.py': [Errno 2] No such file or directory"



--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/W_41qowiu8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/558C33B3.7030700%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

Aaron C. de Bruyn

unread,
Jun 25, 2015, 4:45:56 PM6/25/15
to django...@googlegroups.com
Steve,

You don't appear to be in the same folder as manage.py.

You need to change to the directory that holds your project files.

-A
> 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...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABcoaSDK8Oc_8A6AGRMgDZX4ZVg6FeSCePGbo5YgNmrYCMiQiA%40mail.gmail.com.

Steve Burrus

unread,
Jun 26, 2015, 5:56:54 PM6/26/15
to django...@googlegroups.com
I AM able to create a new virtual env. but I gfet this error message when I try to create a new project! Do i possibly have to start the DjANgo server first then try to create the new project? It's so dumb that I very recently knew how to do all of this fairly easily but not now. What am I doing wrong anyway?
 
"(myenv) C:\Users\SteveB\Desktop\myenv>python .\Scripts\django-admin startproject myproj
python: can't open file '.\Scripts\django-admin': [Errno 2] No such file or directory"






Javier Guerra Giraldez

unread,
Jun 26, 2015, 6:50:27 PM6/26/15
to django...@googlegroups.com
On Fri, Jun 26, 2015 at 4:56 PM, Steve Burrus <steveb...@gmail.com> wrote:
> I AM able to create a new virtual env. but I gfet this error message when I
> try to create a new project!


have you installed django in this virtualenv?

--
Javier

Steve Burrus

unread,
Jun 26, 2015, 9:44:14 PM6/26/15
to django...@googlegroups.com
we;ll here is the error message that I get when I try to install django in the virtual env. :
"C:\Users\SteveB\Desktop\myenv>.\Scripts\activate
(myenv) C:\Users\SteveB\Desktop\myenv>pip install django
Fatal error in launcher: Job information querying failed"
What's the problem anyway?



--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/W_41qowiu8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

Mike Dewhirst

unread,
Jun 27, 2015, 3:54:54 AM6/27/15
to django...@googlegroups.com
On 27/06/2015 11:43 AM, Steve Burrus wrote:
> we;ll here is the error message that I get when I try to install django
> in the virtual env. :
> "C:\Users\SteveB\Desktop\myenv>.\Scripts\activate
> (myenv) C:\Users\SteveB\Desktop\myenv>pip install django
> Fatal error in launcher: Job information querying failed"
> What's the problem anyway?

Change the location of your virtual env. Desktop is convenient because
it is always there in front of you but it is treated in special ways by
the OS. Similarly with other special directories.

Create a new root for envs. For example C:\Users\SteveB\envs

You can always create a shortcut to ..\envs\myenv and leave it on your
Desktop.

Mike

>
>
>
> On Fri, Jun 26, 2015 at 5:49 PM, Javier Guerra Giraldez
> <jav...@guerrag.com <mailto:jav...@guerrag.com>> wrote:
>
> On Fri, Jun 26, 2015 at 4:56 PM, Steve Burrus
> <steveb...@gmail.com <mailto:steveb...@gmail.com>> wrote:
> > I AM able to create a new virtual env. but I gfet this error message when I
> > try to create a new project!
>
>
> have you installed django in this virtualenv?
>
> --
> Javier
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/W_41qowiu8k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users...@googlegroups.com
> <mailto:django-users%2Bunsu...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> --
> 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...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABcoaSDu0MfXm%2BUHheYOZNEAi0BnL7S%3Dcyd0zCd211TMh0Twbg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABcoaSDu0MfXm%2BUHheYOZNEAi0BnL7S%3Dcyd0zCd211TMh0Twbg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages