Debian Codegraph @

examples/regular-django/README.org

raw
1 * Regular Django Example Application
2
3 ** Run using Docker
4
5 #+begin_src sh
6 docker-compose up
7 #+end_src
8
9 You should then be able to open your browser on http://localhost:8000 and see a
10 page with links to sign in or sign up.
11
12
13 ** Run Locally
14
15 Assuming you use virtualenv, follow these steps to download and run the
16 django-allauth example application in this directory:
17
18 #+begin_src sh
19 git clone [email protected]:allauth/django-allauth.git
20 cd django-allauth/examples/regular-django
21 virtualenv venv
22 . venv/bin/activate
23 pip install "../..[mfa,saml,socialaccount]"
24 #+end_src
25
26 Now we need to create the database tables and an admin user.
27 Run the following and when prompted to create a superuser choose yes and
28 follow the instructions:
29
30 #+begin_src sh
31 python manage.py migrate
32 python manage.py createsuperuser
33 #+end_src
34
35
36 Finally, run the Django development server:
37
38 #+begin_src sh
39 python manage.py runserver
40 #+end_src
41
42 You should then be able to open your browser on http://localhost:8000 and see a
43 page with links to sign in or sign up.