Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions to install a django project before installing wagtail-bakery #71

Open
Sanyam-Garg opened this issue Aug 7, 2022 · 2 comments

Comments

@Sanyam-Garg
Copy link

While going through the README for instructions to install wagtail-bakery, it was confusing as to where is this INSTALLED_APPS setting where I need to add bakery. It would be better if there are instructions to setup a django project and then ask the user to update INSTALLED_APPS in settings.py file.

@maxbellec
Copy link

INSTALLED_APPS is in every Django project in settings.py or in every wagtail project in settings/base.py, not sure it needs to be documented here

@AnishaSingh0118
Copy link

AnishaSingh0118 commented Oct 31, 2022

Install the Django code
(https://docs.djangoproject.com/en/4.1/topics/install/#install-the-django-code)
Installation instructions are slightly different depending on whether you’re installing a distribution-specific package, downloading the latest official release, or fetching the latest development version.

Installing an official release with pip
(https://docs.djangoproject.com/en/4.1/topics/install/#installing-an-official-release-with-pip)
This is the recommended way to install Django.

Install [pip]
(https://pip.pypa.io/).
The easiest is to use the [standalone pip installer]
(https://pip.pypa.io/en/latest/installation/).
If your distribution already has pip installed, you might need to update it if it’s outdated. If it’s outdated, you’ll know because installation won’t work.

Take a look at venv.
This tool provides isolated Python environments, which are more practical than installing packages systemwide.
It also allows installing packages without administrator privileges. The contributing tutorial
walks through how to create a virtual environment.

After you’ve created and activated a virtual environment, enter the command:

type windows cmd
...> py -m pip install Django

Installing a distribution-specific package
(https://docs.djangoproject.com/en/4.1/topics/install/#installing-a-distribution-specific-package)
Check the [distribution specific notes]
(https://docs.djangoproject.com/en/4.1/misc/distributions/) to see if your platform/distribution provides official Django packages/installers.
Distribution-provided packages will typically allow for automatic installation of dependencies and supported upgrade paths; however, these packages will rarely contain the latest release of Django.

Installing the development version
(https://docs.djangoproject.com/en/4.1/topics/install/#installing-the-development-version)
Tracking Django development

If you decide to use the latest development version of Django, you’ll want to pay close attention to the development timeline, and you’ll want to keep an eye on the release notes for the upcoming release. This will help you stay on top of any new features you might want to use, as well as any changes you’ll need to make to your code when updating your copy of Django. (For stable releases, any necessary changes are documented in the release notes.)

If you’d like to be able to update your Django code occasionally with the latest bug fixes and improvements, follow these instructions:

Make sure that you have [Git]
(https://git-scm.com/) installed and that you can run its commands from a shell. (Enter git help at a shell prompt to test this.)

Check out Django’s main development branch like so:

type windows cmd
...> git clone https://github.com/django/django.git

This will create a directory django in your current directory.

Make sure that the Python interpreter can load Django’s code. The most convenient way to do this is to use a virtual environment and pip. The contributing tutorial walks through how to create a virtual environment.

After setting up and activating the virtual environment, run the following command:

type windows cmd

...> py -m pip install -e django\

This will make Django’s code importable, and will also make the django-admin utility command available. In other words, you’re all set!

When you want to update your copy of the Django source code, run the command git pull from within the django directory. When you do this, Git will download any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants