Skip to content

Commit

Permalink
Move createmember to override createsuperuser (#3831)
Browse files Browse the repository at this point in the history
* Move createmember to override createsuperuser

* Update docs
  • Loading branch information
DeD1rk authored Nov 8, 2024
1 parent 1884992 commit 35261b9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,6 @@ migrations: ## Automatically create migration scripts
superuser: .make/deps website/db.sqlite3 ## Create a superuser for your local concrexit
poetry run website/manage.py createsuperuser

.PHONY: member
member: .make/deps website/db.sqlite3 ## Create a member for your local concrexit
poetry run website/manage.py createmember

.PHONY: fixtures
fixtures: .make/deps website/db.sqlite3 ## Create dummy database entries
poetry run website/manage.py createfixtures -a
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The latest Thalia Website built on Django.

0. Get at least Python 3.11 and install [poetry](https://python-poetry.org/docs/#installation) >= 1.8.0 and the [Pillow dependencies](#pillow-dependencies) as per below.
1. Clone this repository
2. `make member` to create the first member while in the cloned folder. This will also install all dependencies (in a separate virtual environment)
2. `make superuser` to create the first member while in the cloned folder. This will also install all dependencies (in a separate virtual environment)
3. `make fixtures` to generate a bunch of test data
4. `make run` to run a testing server. Now you are able to visit your local concrexit at http://127.0.0.1:8000
5. Open the code in your favorite Python IDE (we have some helpful default settings provided for VSCode).
Expand Down
2 changes: 1 addition & 1 deletion website/thaliawebsite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ def show_toolbar(request):
###############################################################################
# (Mostly) static settings
INSTALLED_APPS = [
"utils",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
Expand Down Expand Up @@ -619,7 +620,6 @@ def show_toolbar(request):
"documents.apps.DocumentsConfig",
"activemembers.apps.ActiveMembersConfig",
"photos.apps.PhotosConfig",
"utils",
"mailinglists.apps.MailinglistsConfig",
"merchandise.apps.MerchandiseConfig",
"thabloid.apps.ThabloidConfig",
Expand Down

0 comments on commit 35261b9

Please sign in to comment.