Bailey Posted October 11, 2017 Posted October 11, 2017 Hello, Has anyone got any good tutorials or any help they could offer, I want to learn Django as Im secure with python but I cant seem to get Django setup! I want to start and rewrite my website ...again from php. Ive seen the one on the wiki but couldnt get my head around it. Thanks in advance,Bailey
wolstech Posted October 11, 2017 Posted October 11, 2017 Django is widely considered to be the most difficult-to-use thing that we offer. The wiki article is the only working tutorial that I know of. The rest of your program is up to you. If you're having trouble with the tutorial, how far have you gotten and what specifically do you need help with on it (Krydos knows the most about it, I've never personally tried django, I'm a PHP developer almost exclusively)? PHP is a much easier language to develop in, at least in my opinion. It's not picky about things like whitespace, and it doesn't have any format or framework you're constrained by (unless you choose to use one of the many that exist). As long as your syntax is correct, it just works. PHP's flexibility can be seen as a bad thing in many people's eyes though since it can promote the production of bad code.
Bailey Posted October 11, 2017 Author Posted October 11, 2017 Hello Wolstech, I've gotten as far as installing but can't seam to set up the localhost aspect of it. Being a web developer I obviously know about localhost but can't get my head around using Django to do it . And I know a lot about PHP but I'm currently doing my Computer Science GCSE and the AQA exam board uses python so I feel that, aswell as a new experience, it will help with me get to know and help with me using python in my exam. And with help, once I've got the localhost/environment setup I should be fine but it's getting that started! Thanks,Bailey
Krydos Posted October 12, 2017 Posted October 12, 2017 How to set up Django on your home pc depends a lot on what OS you're using. I've done it on Ubuntu/CentOS/etc. If you're using windows I'll be a lot less help. 1
Bailey Posted October 12, 2017 Author Posted October 12, 2017 Hello Krydos, I am using Windows and already have python etc installed. My python version is 3.6.x Thanks
Krydos Posted October 12, 2017 Posted October 12, 2017 Have you installed pip, virtualenv, and django yet? https://docs.djangoproject.com/en/1.11/howto/windows/
Bailey Posted October 13, 2017 Author Posted October 13, 2017 Ive installed pip as this comes with python now but I dont know about virtualenv because thats the bit I dont really understand and yes Django is installed.
Krydos Posted October 13, 2017 Posted October 13, 2017 You don't need virtualenv. For some reason a lot of python guides always say you need it. The next step is to go to command prompt at the directory you want your django project to be and run the command django-admin startproject hello Like it says at http://wiki.helionet.org/Django#Getting_started_with_Django_1.10 Here is another guide https://docs.djangoproject.com/en/1.11/intro/tutorial01/
miwilc Posted October 15, 2017 Posted October 15, 2017 I am using Windows and already have python etc installed. My python version is 3.6.x Thanks Offtopic but I remember working on Windows, it was a horrible experience. Have you tried running Linux on your machine?I recommend Solus (https://solus-project.com) which is a x86_64-only Linux desktop OS, it comes as a live CD so you can try it out before you install. Linux is great! Also, @Krydos you should try out solus
Krydos Posted October 15, 2017 Posted October 15, 2017 Also, @Krydos you should try out solus You should have said something sooner. I just installed Ubuntu 17 on my new laptop last night.
miwilc Posted October 18, 2017 Posted October 18, 2017 Also, @Krydos you should try out solus You should have said something sooner. I just installed Ubuntu 17 on my new laptop last night.Never too late.. if you have a separate /home Then again, if you don't: I would recommend Solus. And a separate /home never hurt anyone... I remember installing over 5 distros on my craptop to test each one. I settled on Solus.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now