JJ Zolper
2012-01-23 04:22:00 UTC
Hello everyone,
I was able to install Django to my machine and before I was using the
command prompt. Django's path is in my Windows 7 64 bit Enterprise
Environment variable. Python worked fine as well too. I also installed
IPython because I heard it was useful but I haven't tried that yet.
Everything has been good so far. I would like some input on what I am
currently trying now.
I have gone ahead and installed IronPython. I already had Visual Studio
2010 on my computer so I was using that. I also installed Python Tools for
Visual Studio. As I mentioned before I already have Python 2.7.2 installed.
I was able to see the image/window in step 3 here:
http://pytools.codeplex.com/wikipage?title=Installation%20-%20details&referringTitle=Home
It shows the options pane for Python Tools for Visual Studio. I was able to
see that PT4VS (Python Tools for Visual Studio) was correctly including the
location of the Python install at C:/Python27/python.py. Everything looked
good there as it seems that Python was incorporated into PT4VS. I was
trying to continue through the tutorial but I was having problems. I tried
this command: python manage.py runserver but I only recieved a traceback
error.
Additionally in PT4VS there is a field for a startup script. I wrote one
and here it is:
import os
import IPython
import django
os.chdir('c:\\MTDevelopment\\Django\\newartists')
This so that I could change my directory to where my startproject was set
with all the django web framework files. Also to import IPython and django
as you see here. That seemed to work as I anticipated.
What I am asking you is why am I not able to get the full power of Django?
In my command prompt I wasn't inside the python interpreter and ran the
Django commands and everything worked fine. However, I was under the
impression that with a Python interpreter in VS that I could have
everything come in in a start up script and just go on my way coding with
Django having set the directory to the location of my startproject?
When I type: django and IPython into my PT4VS now I see:
>>> IPython
<module 'IPython' from
'C:\Python27\lib\site-packages\ipython-0.11-py2.7.egg\IPython\__init__.pyc'>
>>> django
<module 'django' from
'C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\__init__.pyc'>
so it is imported it correctly I think but I'm not able to use it. I've
been working hard on teaching myself how to get all this set up and any
help from you all would make my time working on this a lot easier!
Thanks so much,
JJ Zolper
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/P5AJ334Yr8YJ.
To post to this group, send email to django-***@googlegroups.com.
To unsubscribe from this group, send email to django-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
I was able to install Django to my machine and before I was using the
command prompt. Django's path is in my Windows 7 64 bit Enterprise
Environment variable. Python worked fine as well too. I also installed
IPython because I heard it was useful but I haven't tried that yet.
Everything has been good so far. I would like some input on what I am
currently trying now.
I have gone ahead and installed IronPython. I already had Visual Studio
2010 on my computer so I was using that. I also installed Python Tools for
Visual Studio. As I mentioned before I already have Python 2.7.2 installed.
I was able to see the image/window in step 3 here:
http://pytools.codeplex.com/wikipage?title=Installation%20-%20details&referringTitle=Home
It shows the options pane for Python Tools for Visual Studio. I was able to
see that PT4VS (Python Tools for Visual Studio) was correctly including the
location of the Python install at C:/Python27/python.py. Everything looked
good there as it seems that Python was incorporated into PT4VS. I was
trying to continue through the tutorial but I was having problems. I tried
this command: python manage.py runserver but I only recieved a traceback
error.
Additionally in PT4VS there is a field for a startup script. I wrote one
and here it is:
import os
import IPython
import django
os.chdir('c:\\MTDevelopment\\Django\\newartists')
This so that I could change my directory to where my startproject was set
with all the django web framework files. Also to import IPython and django
as you see here. That seemed to work as I anticipated.
What I am asking you is why am I not able to get the full power of Django?
In my command prompt I wasn't inside the python interpreter and ran the
Django commands and everything worked fine. However, I was under the
impression that with a Python interpreter in VS that I could have
everything come in in a start up script and just go on my way coding with
Django having set the directory to the location of my startproject?
When I type: django and IPython into my PT4VS now I see:
>>> IPython
<module 'IPython' from
'C:\Python27\lib\site-packages\ipython-0.11-py2.7.egg\IPython\__init__.pyc'>
>>> django
<module 'django' from
'C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\__init__.pyc'>
so it is imported it correctly I think but I'm not able to use it. I've
been working hard on teaching myself how to get all this set up and any
help from you all would make my time working on this a lot easier!
Thanks so much,
JJ Zolper
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/P5AJ334Yr8YJ.
To post to this group, send email to django-***@googlegroups.com.
To unsubscribe from this group, send email to django-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.