Installing Django

70 weergaven
Naar het eerste ongelezen bericht

Danny Jr Chu

ongelezen,
29 jan 2017, 22:56:0629-01-2017
aan Django users
Guys, please help. I am new with Python and Django, I mean I don't have any clue what's going on (don't even know how to encode), but I wish I could build a website out of my imaginary. I know this will goes miles and miles... I am trying to install Django but couple of errors occur : 

PS C:\Users\Luv> easy_install django
Searching for django
.10.5.tar.gz#md5=3fce02f1e6461fec21f1f15ea7489924
Best match: Django 1.10.5
Processing Django-1.10.5.tar.gz
Writing C:\Users\Luv\AppData\Local\Temp\easy_install-5dcbu64l\Django-1.10.5\setup.cfg
Running Django-1.10.5\setup.py -q bdist_egg --dist-dir C:\Users\Luv\AppData\Local\Temp\easy_install-5dcbu64l\Django-1.10
.5\egg-dist-tmp-k4dzxio3
no previously-included directories found matching 'django\contrib\admin\bin'
warning: no previously-included files matching '__pycache__' found anywhere in distribution
creating c:\program files (x86)\lib\site-packages\django-1.10.5-py3.6.egg
Extracting django-1.10.5-py3.6.egg to c:\program files (x86)\lib\site-packages
Adding django 1.10.5 to easy-install.pth file
Installing django-admin.py script to c:\program files (x86)\Scripts
error: [Errno 13] Permission denied: 'c:\\program files (x86)\\Scripts\\django-admin.py'

Jani Tiainen

ongelezen,
30 jan 2017, 03:34:2730-01-2017
aan django...@googlegroups.com

Hi,

First you seem to be installing Django to Windows, it adds certain complexity all together, it's not impossible though.


By given paths for some strange reason easy_install seems to thing that you have installed your Python to "C:\program files (x86)\" directory (not subdirectory there or anything, to root of that folder), that is quite wrong, first it requires allways adminstrative access to install anything there, and second it's not standard place, which would be something like C:\PythonXX\ (to avoid permission problems).

First thing to you is now to figure out did you managed to mess up Python installation by putting it to incorrect path and fix by removing all components and then installing it to more proper location.

Depending on Python modules you want to use some may require compiling which is not simple under Windows, so if you can use some Linux (or some other unix variant) box or something like virtual machine setting up environment is much easier.
--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/86091d59-6578-4e85-9be0-d24beb1f5b84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Jani Tiainen

Antonis Christofides

ongelezen,
30 jan 2017, 05:16:2730-01-2017
aan django...@googlegroups.com

I wish I could build a website out of my imaginary

Hello,

depending on what you mean with "build a website", you may be looking at the wrong thing. Have you tried, for example, to build a web site at wordpress.com? If yes, why is this not sufficient for you and you want to learn Django?

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com

Danny Jr Chu

ongelezen,
30 jan 2017, 05:28:1130-01-2017
aan Django users
Hello Jani, you are an angel :) 

I have un-installed it and re-install to the right folder.. thanks a lot. 

Danny Jr Chu

ongelezen,
30 jan 2017, 05:33:4830-01-2017
aan Django users
Hi Antonis, 

No I have not yet tried wordpress, but the answer is budget wise. I would think that after these exercises, I am just going to pay (I think) the domain and hosting only.

Regards,
Danny

Antonis Christofides

ongelezen,
30 jan 2017, 05:54:5830-01-2017
aan django...@googlegroups.com

If you want to just make a web site, Django is the wrong thing for you. Django is not for building web sites, it's for building web applications. You might instead want to look at Mezzanine or Django-CMS or Wagtail (these are all software for building web sites and they're based on Django), or, if being based on Django is not a requirement, you can use Wordpress or Drupal. There are really many more, there must be tens. I believe the most popular is Wordpress.

If you use any of these and install it on a server, you will only need to pay for the domain and hosting (and spend considerable time setting it up).

If you use wordpress.com, they set it up for you, so you don't need to install it yourself, and the cost is probably less than getting a virtual server to install stuff yourself.

I don't want to discourage you from using Django if it's for you. I just don't want you to get the impression that "Django is bad/complicated/painful" when you just might be using it for the wrong purpose.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com

Danny Jr Chu

ongelezen,
30 jan 2017, 07:27:5930-01-2017
aan Django users
I will consider your professional advise Antonis. However, what I would like to build is a (1st) freelancer website (upwork or like), I know that there are hundreds of these right now, but with a subtle twist and to offer both client and contractor something more, it may be feasible. (2nd) I fail to find Angel Investor so I have to cut cost everything to the rock bottom, I have a lot of time available to study and (plus motivation of course) and (3nd) I've done number of websites with blogspot (but plugins are paid monthly). So, I was thinking to do it myself the backbone with Django. 
Please tell me more what I should have know to bring this project to life. 

Thanks for your support,
Danny

Antonis Christofides

ongelezen,
30 jan 2017, 07:39:2930-01-2017
aan django...@googlegroups.com

If you want to build something like Upwork, then Django is definitely a good option, but of course, as you have guessed, you have really much learning to do.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com

Danny Jr Chu

ongelezen,
30 jan 2017, 07:59:2230-01-2017
aan Django users
Ok, thanks.
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten