Wednesday, July 1, 2015

Re: Can't Start Project.

No, Django does that for you. You only have to worry about DB settings if you want something else like MySQL or Postgres.

On 1 Jul 2015 23:40, "Bill Freeman" <ke1g.nh@gmail.com> wrote:
Yes.  syncdb should work, assuming that sqlite is available (I think that it's built in in all the python 3.x versions), and assuming that you have a correctly configured settings.py (startproject makes one, but you will still have things to enter, such as data base configuration info (like the file to use to back sqlite), or to edit, such as your timezone.

On Wed, Jul 1, 2015 at 5:35 PM, Steve Burrus <steveburrus28@gmail.com> wrote:
no django was not installed so I did a quick "pip install django" and installed django 1.8.2 into my ins tance of virualenv and was [finally] able to connect to the django server. I assume trhat I can easily do the "python manage.py syncdb" to connect to the sqllite3 server?
 

On Wed, Jul 1, 2015 at 3:58 PM, Bill Freeman <ke1g.nh@gmail.com> wrote:
It sounds like django isn't on your path.  If you are running in a virtualenv, was django pip installed while running in that same environment?

On Wed, Jul 1, 2015 at 4:26 PM, Steve Burrus <steveburrus28@gmail.com> wrote:
cd to the directory containing manage.py (the project directory), then: "python manage.py runserver" Yeah I just now did exact;ly that but STILL got the error message : "(steve) C:\Users\SteveB\Desktop\steve\src>python manage.py runserver Traceback (most recent call last):  File "manage.py", line 8, in <module> from django.core.management import execute_from_command_line ImportError: No module named django.core.management" I r enamed my newly created project to "src".


On Wed, Jul 1, 2015 at 3:14 PM, Bill Freeman <ke1g.nh@gmail.com> wrote:
cd to the directory containing manage.py (the project directory), then:

  python manage.py runserver

On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus <steveburrus28@gmail.com> wrote:
well I was able to create a new project earlier however I am now having trouble with starting the django ser ver. when I ran this cpommand "python .\Scripts\django-admin.py runserver" I always get this error message : "python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such file or directory". What's going on for me to get this error?

On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:
I need some help please with  tryiong to start a new Django project. Here is the error message I always get when I try to do this. can someone help me with this?
  
"C:\Users\SteveB\Desktop\steve>.\Scripts\activate
(steve) C:\Users\SteveB\Desktop\steve>python .\Scripts\django-admin.py startproject proj
python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such file or directory"



--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/1wWP0wRstsU/unsubscribe.
To unsubscribe from this group and all its topics, 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB%2BAj0uiQO5Ksjd-xkQ_kVr2SDvNEGM654x0mmEs1gCRW2jmCg%40mail.gmail.com.

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

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABcoaSAOXFYq8HQYsCw48rvGjBSEv29XgoFcARKATfx_My_eWQ%40mail.gmail.com.

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

--
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/1wWP0wRstsU/unsubscribe.
To unsubscribe from this group and all its topics, 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB%2BAj0t0uoOfsbBdZ-5x0vbi4nzoQrCF6RPcUvTha3-61R6mMw%40mail.gmail.com.

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

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABcoaSCvdY4Kudqt%3DhgTsMzHuLwJ-Yxz%3DOzeQXj%3DiTf8b%3DXLhA%40mail.gmail.com.

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

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB%2BAj0skBP1RmPB3NSC0rEOy7AzYvH%2B5hOumfmxBCGhcrQBexg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACczBUKfRdF%3D68VfyPdc%3Df5vEGkMp5AGhcTydYzQcMbf3-vcng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment