Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@


class UserFactory(factory.django.DjangoModelFactory):
username = factory.Sequence(lambda n: f"user{n}")
first_name = factory.Faker("first_name")
last_name = factory.Faker("last_name")
email = factory.Sequence(lambda n: "person{0}@email.com".format(n))
email = factory.Sequence(lambda n: "person{0}@example.org".format(n))
password = "test123"

class Meta:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

class UserModelTestCase(TestCase):
def test_create(self):
user = UserFactory.create(username="test")
user = UserFactory.create()
self.assertIsNotNone(user.pk)
4,521 changes: 1,766 additions & 2,755 deletions {{cookiecutter.project_slug}}/package-lock.json

Large diffs are not rendered by default.

15 changes: 2 additions & 13 deletions {{cookiecutter.project_slug}}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"babel-loader": "^9.1.3",
"browser-sync": "^2.29.3",
"browser-sync-webpack-plugin": "^2.3.0",
"bulma": "^1.0.2",
"clean-webpack-plugin": "^4.0.0",
"core-js": "^3.35.0",
"css-loader": "^6.9.0",
Expand All @@ -15,13 +16,11 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-webpack-plugin": "^4.0.1",
"flatpickr": "^4.6.13",
"mini-css-extract-plugin": "^2.7.7",
"normalize-scss": "^8.0.0",
"postcss-loader": "^7.3.4",
"postcss-scss": "^4.0.9",
"prettier": "^3.2.2",
"sass": "^1.69.7",
"sass-embedded": "^1.75.0",
"sass-loader": "^13.3.3",
"style-loader": "^3.3.4",
"stylelint": "^15.11.0",
Expand All @@ -30,21 +29,11 @@
"stylelint-selector-bem-pattern": "^3.0.1",
"stylelint-webpack-plugin": "^4.1.1",
"svg-spritemap-webpack-plugin": "^4.5.0",
"vue": "^2.7.16",
"vue-loader": "^17.4.2",
"vue-router": "^3.6.5",
"vue-style-loader": "^4.1.3",
"vue-template-compiler": "^2.7.16",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-notifier": "^1.15.0"
},
"private": true,
"devDependencies": {
"fast-xml-parser": "^4.3.3",
"fs-extra": "^11.2.0",
"pa11y": "^7.0.0"
},
"scripts": {
"eslint": "eslint",
"prettier": "prettier",
Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/project/settings/local.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

from .base import * # noqa

Expand All @@ -21,7 +22,6 @@

INTERNAL_IPS = ["127.0.0.1"]
ALLOWED_HOSTS = ["*"]

INSTALLED_APPS += ["django_extensions"]

# Webpack runserver
Expand All @@ -36,7 +36,7 @@

# Django debug toolbar - show locally unless DISABLE_TOOLBAR is enabled with environment vars
# eg. DISABLE_TOOLBAR=1 ./manage.py runserver
if not os.environ.get("DISABLE_TOOLBAR"):
if not os.environ.get("DISABLE_TOOLBAR") and "test" not in sys.argv:
INSTALLED_APPS += ["debug_toolbar"]

MIDDLEWARE = ["debug_toolbar.middleware.DebugToolbarMiddleware"] + MIDDLEWARE
Expand Down
27 changes: 0 additions & 27 deletions {{cookiecutter.project_slug}}/static/src/scss/_accessibility.scss

This file was deleted.

73 changes: 0 additions & 73 deletions {{cookiecutter.project_slug}}/static/src/scss/_typography.scss

This file was deleted.

22 changes: 0 additions & 22 deletions {{cookiecutter.project_slug}}/static/src/scss/_variables.scss

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions {{cookiecutter.project_slug}}/static/src/scss/elements/_logo.scss

This file was deleted.

48 changes: 0 additions & 48 deletions {{cookiecutter.project_slug}}/static/src/scss/elements/_media.scss

This file was deleted.

This file was deleted.

Loading