The Python Paradox

https://news.ycombinator.com/item?id=10278804
by CaiGengYang • 11 years ago
2 3 11 years ago

So I am reading Paul Graham's essay "The Python Paradox" and decided to learn Python.

I downloaded Python 3.4.3, pip and django version 1.8.4 and am going through this tutorial : https://docs.djangoproject.com/en/1.8/intro/tutorial01/

I managed to run the command $ python -c "import django; print(django.get_version())" and verify my django version correctly.

The 2nd chapter (Creating a project) gives these instructions :

If this is your first time using Django, you’ll have to take care of some initial setup. Namely, you’ll need to auto-generate some code that establishes a Django project – a collection of settings for an instance of Django, including database configuration, Django-specific options and application-specific settings.

From the command line, cd into a directory where you’d like to store your code, then run the following command:

$ django-admin startproject mysite This will create a mysite directory in your current directory. If it didn’t work, see Problems running django-admin.

I ran into some problems here : How do you "cd into a directory where you'd like to run your code" ?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com