I know absolutely nothing about Django, but I am needing to get an existing project running in OSX.
From the project's directory I run python manage.py runserver
and get the error: Error: No module named cms
.
Seems like the INSTALLED_APPS constant (in settings.py) defines the required modules... but how do I install the dang things?
Is there a standard way of installing dependencies in bulk (like Ruby's Bundler)?
Can we use any python libraries in Django ( such as PDFplumber, pandas, etc) ? Yes, a Django app is just Python code. You can add whatever python code you want, including import pandas or whatever.
Installing an official release with pip This is the recommended way to install Django. Install pip. The easiest is to use the standalone pip installer. If your distribution already has pip installed, you might need to update it if it's outdated.
No you don't have to reinstall Django each time you make a new project, hopefully. Once you have installed it using pip , you just have to enter django-admin startproject <project-name> to get started.
you can install all dependencies in once, if there is a requirements.txt file! you just have to run the follow command:
pip install -r requirements.txt
otherwise you can install one by one:
pip install django-cms
Here is the PIP documentation: http://pypi.python.org/pypi/pip
if you are used to ruby, you can compared to ruby GEM
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With