I know very little about Visual Studio but I do believe development is
simpler when you avoid IDEs. If you simplify your approach you will
understand what Django wants without worrying about VS. Once you have a
handle on Django you will probably be able to integrate it with VS.
For example on Windows I install Python in the root of drive C: and then
set up a virtualenv directory for each project. The process of
establishing a virtualenv copies portions of Python into subdirectories
within the project directory - call that the project Python.
Virtualenv lets you keep the main Python installation in the root of C:
clean and tidy with very few additional libraries. I don't install
anything there. Not even the database driver for Postgres which is used
by all my projects. I definitely do not install Django. However, I do
keep pip updated in the main Python because it gets copied every time I
start a new virtualenv.
The software you want for a particular project - such as Django - gets
installed in the local project site-packages directory using local pip
which was copied local to the project by virtualenv
When you activate a particular virtualenv to work on a project, your
environment variables get manipulated to use the local project Python
and its libraries.
When I want to work on a project I open a command prompt, activate a
virtualenv, start the dev server and write code in a text editor. Then I
point my browser at http://localhost:8000/admin and look at the outcome.
When I want to run tests I open a command prompt and run the tests. Simple.
For VS you probably need to do much the same. Maybe VS wants to control
stuff for you? I found working with an IDE got in the way. The one I
tried needed to activate the environment, manage the repo, use up
machine resources and generally obscure my view.
ymmv
Mike
On Nov 8, 2018, at 2:47 PM, Saeed Pooladzadeh <lingo1...@gmail.com
<mailto:lingo1...@gmail.com>> wrote:
Thanks for your help.
But this tutorial is not for windows and visual studio.
In which directory should I install python? Is it the same as other
programs?
My terminal doesn't accept any of Django command!!
در چهارشنبه 7 نوامبر 2018، ساعت 5:07:03 (UTC-8)، Arturo Fernandez نوشته:
Follow this tutorial:
https://www.youtube.com/watch?v=UmljXZIypDc&index=1&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p
<https://www.youtube.com/watch?v=UmljXZIypDc&index=1&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p>
He goes over how to create an admin page and have it working.
On Tuesday, November 6, 2018 at 9:02:03 PM UTC-5, Saeed Pooladzadeh wrote:
But my problem is there is no admin page!!
What is wrong? please inform me.
در سهشنبه 6 نوامبر 2018، ساعت 17:39:25 (UTC-8)، Phako Perez نوشته:I
can recommend py charm
Sent from my iPhone
On Nov 6, 2018, at 3:32 PM, Matthew Pava <matthe...@iss.com> wrote:
PyCharm
*From:*django...@googlegroups.com [mailto:dj...@googlegroups.com] *On
Behalf Of *Saeed Pooladzadeh
*Sent:* Tuesday, November 6, 2018 3:31 PM
*To:* Django users
*Subject:* Re: Setting up admin in visual studio
There are some tools for visual studio which can make it a python IDE.
.I want just want to make the admin.py to work.
What are other IDE's for Django?
در سهشنبه 6 نوامبر 2018، ساعت 6:03:32 (UTC-8)، Jason نوشته:
visual studio, the .net/C# IDE, is not for python (at least none of
the versions I've used)
So not sure how to help you other than suggest another IDE
--
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 djang...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/bd5ffb6d-18b0-43fc-ac59-b25dca55c097%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/bd5ffb6d-18b0-43fc-ac59-b25dca55c097%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/c1d67048-513b-f1cf-7755-cd0c314dadf6%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.