From eae25e2e212d16ac7ec77236021930092cafd354 Mon Sep 17 00:00:00 2001 From: Kenan7 Date: Wed, 10 Feb 2021 16:00:37 +0400 Subject: [PATCH] change project name from boilerplate default name to 'labrin_task' --- .editorconfig | 2 +- .gitignore | 2 +- README.rst | 4 +-- config/asgi.py | 4 +-- config/celery_app.py | 2 +- config/routing.py | 2 +- config/settings/base.py | 24 ++++++++---------- config/urls.py | 8 +++--- config/wsgi.py | 4 +-- docs/Makefile | 6 ++--- docs/howto.rst | 12 ++++----- docs/make.bat | 2 +- docs/users.rst | 8 +++--- .../__init__.py | 0 .../chat/__init__.py | 0 .../chat/admin.py | 0 .../chat/apps.py | 2 +- .../chat/consumer.py | 2 +- .../chat/migrations/0001_initial.py | 0 .../migrations/0002_auto_20210207_2145.py | 0 .../chat/migrations/__init__.py | 0 .../chat/models.py | 4 +-- .../chat/routing.py | 0 .../chat/tests.py | 0 .../chat/urls.py | 0 .../chat/views.py | 0 {my_awesome_project => labrin_task}/common.py | 0 .../conftest.py | 4 +-- .../contrib/__init__.py | 0 .../contrib/sites/__init__.py | 0 .../contrib/sites/migrations/0001_initial.py | 0 .../migrations/0002_alter_domain_unique.py | 0 .../0003_set_site_domain_and_name.py | 0 .../migrations/0004_auto_20210205_2052.py | 0 .../contrib/sites/migrations/__init__.py | 0 .../fileapp/Untitled-1.html | 0 .../fileapp/__init__.py | 0 .../fileapp/admin.py | 0 .../fileapp/apps.py | 2 +- .../fileapp/forms.py | 0 .../fileapp/migrations/0001_initial.py | 0 .../migrations/0002_auto_20210205_1431.py | 0 .../migrations/0003_auto_20210205_2052.py | 0 .../migrations/0004_auto_20210206_0940.py | 0 .../migrations/0005_auto_20210206_1546.py | 0 .../fileapp/migrations/__init__.py | 0 .../fileapp/models.py | 2 +- .../fileapp/tasks.py | 0 .../fileapp/tests.py | 4 +-- .../fileapp/urls.py | 0 .../fileapp/views.py | 0 .../static/css/project.css | 0 .../static/fonts/.gitkeep | 0 .../static/images/favicons/favicon.ico | Bin .../static/js/dropzone/basic.min.css | 0 .../js/dropzone/dropzone-amd-module.min.js | 0 .../static/js/dropzone/dropzone.min.css | 0 .../static/js/dropzone/dropzone.min.js | 0 .../static/js/project.js | 0 .../websocket/reconnecting-websocket.min.js | 0 .../static/sass/custom_bootstrap_vars.scss | 0 .../static/sass/project.scss | 0 .../templates/403.html | 0 .../templates/404.html | 0 .../templates/500.html | 0 .../templates/account/account_inactive.html | 0 .../templates/account/base.html | 0 .../templates/account/email.html | 0 .../templates/account/email_confirm.html | 0 .../templates/account/login.html | 0 .../templates/account/logout.html | 0 .../templates/account/password_change.html | 0 .../templates/account/password_reset.html | 0 .../account/password_reset_done.html | 0 .../account/password_reset_from_key.html | 0 .../account/password_reset_from_key_done.html | 0 .../templates/account/password_set.html | 0 .../templates/account/signup.html | 0 .../templates/account/signup_closed.html | 0 .../templates/account/verification_sent.html | 0 .../account/verified_email_required.html | 0 .../templates/main/base.html | 0 .../templates/pages/about.html | 0 .../templates/pages/create_filemodel.html | 0 .../templates/pages/filelist_swap.html | 0 .../templates/pages/filemodel_detail.html | 0 .../templates/pages/home.html | 0 .../templates/users/user_detail.html | 0 .../templates/users/user_form.html | 0 .../users/__init__.py | 0 .../users/adapters.py | 0 .../users/admin.py | 2 +- .../users/apps.py | 4 +-- .../users/forms.py | 0 .../users/migrations/0001_initial.py | 0 .../users/migrations/__init__.py | 0 .../users/models.py | 0 .../users/tasks.py | 0 .../users/tests/__init__.py | 0 .../users/tests/factories.py | 0 .../users/tests/test_admin.py | 2 +- .../users/tests/test_forms.py | 4 +-- .../users/tests/test_models.py | 2 +- .../users/tests/test_tasks.py | 4 +-- .../users/tests/test_urls.py | 2 +- .../users/tests/test_views.py | 8 +++--- .../users/urls.py | 2 +- .../users/views.py | 0 .../utils/__init__.py | 0 .../utils/context_processors.py | 0 manage.py | 4 +-- setup.cfg | 2 +- 112 files changed, 66 insertions(+), 70 deletions(-) rename {my_awesome_project => labrin_task}/__init__.py (100%) rename {my_awesome_project => labrin_task}/chat/__init__.py (100%) rename {my_awesome_project => labrin_task}/chat/admin.py (100%) rename {my_awesome_project => labrin_task}/chat/apps.py (63%) rename {my_awesome_project => labrin_task}/chat/consumer.py (99%) rename {my_awesome_project => labrin_task}/chat/migrations/0001_initial.py (100%) rename {my_awesome_project => labrin_task}/chat/migrations/0002_auto_20210207_2145.py (100%) rename {my_awesome_project => labrin_task}/chat/migrations/__init__.py (100%) rename {my_awesome_project => labrin_task}/chat/models.py (79%) rename {my_awesome_project => labrin_task}/chat/routing.py (100%) rename {my_awesome_project => labrin_task}/chat/tests.py (100%) rename {my_awesome_project => labrin_task}/chat/urls.py (100%) rename {my_awesome_project => labrin_task}/chat/views.py (100%) rename {my_awesome_project => labrin_task}/common.py (100%) rename {my_awesome_project => labrin_task}/conftest.py (62%) rename {my_awesome_project => labrin_task}/contrib/__init__.py (100%) rename {my_awesome_project => labrin_task}/contrib/sites/__init__.py (100%) rename {my_awesome_project => labrin_task}/contrib/sites/migrations/0001_initial.py (100%) rename {my_awesome_project => labrin_task}/contrib/sites/migrations/0002_alter_domain_unique.py (100%) rename {my_awesome_project => labrin_task}/contrib/sites/migrations/0003_set_site_domain_and_name.py (100%) rename {my_awesome_project => labrin_task}/contrib/sites/migrations/0004_auto_20210205_2052.py (100%) rename {my_awesome_project => labrin_task}/contrib/sites/migrations/__init__.py (100%) rename {my_awesome_project => labrin_task}/fileapp/Untitled-1.html (100%) rename {my_awesome_project => labrin_task}/fileapp/__init__.py (100%) rename {my_awesome_project => labrin_task}/fileapp/admin.py (100%) rename {my_awesome_project => labrin_task}/fileapp/apps.py (62%) rename {my_awesome_project => labrin_task}/fileapp/forms.py (100%) rename {my_awesome_project => labrin_task}/fileapp/migrations/0001_initial.py (100%) rename {my_awesome_project => labrin_task}/fileapp/migrations/0002_auto_20210205_1431.py (100%) rename {my_awesome_project => labrin_task}/fileapp/migrations/0003_auto_20210205_2052.py (100%) rename {my_awesome_project => labrin_task}/fileapp/migrations/0004_auto_20210206_0940.py (100%) rename {my_awesome_project => labrin_task}/fileapp/migrations/0005_auto_20210206_1546.py (100%) rename {my_awesome_project => labrin_task}/fileapp/migrations/__init__.py (100%) rename {my_awesome_project => labrin_task}/fileapp/models.py (95%) rename {my_awesome_project => labrin_task}/fileapp/tasks.py (100%) rename {my_awesome_project => labrin_task}/fileapp/tests.py (95%) rename {my_awesome_project => labrin_task}/fileapp/urls.py (100%) rename {my_awesome_project => labrin_task}/fileapp/views.py (100%) rename {my_awesome_project => labrin_task}/static/css/project.css (100%) rename {my_awesome_project => labrin_task}/static/fonts/.gitkeep (100%) rename {my_awesome_project => labrin_task}/static/images/favicons/favicon.ico (100%) rename {my_awesome_project => labrin_task}/static/js/dropzone/basic.min.css (100%) rename {my_awesome_project => labrin_task}/static/js/dropzone/dropzone-amd-module.min.js (100%) rename {my_awesome_project => labrin_task}/static/js/dropzone/dropzone.min.css (100%) rename {my_awesome_project => labrin_task}/static/js/dropzone/dropzone.min.js (100%) rename {my_awesome_project => labrin_task}/static/js/project.js (100%) rename {my_awesome_project => labrin_task}/static/js/websocket/reconnecting-websocket.min.js (100%) rename {my_awesome_project => labrin_task}/static/sass/custom_bootstrap_vars.scss (100%) rename {my_awesome_project => labrin_task}/static/sass/project.scss (100%) rename {my_awesome_project => labrin_task}/templates/403.html (100%) rename {my_awesome_project => labrin_task}/templates/404.html (100%) rename {my_awesome_project => labrin_task}/templates/500.html (100%) rename {my_awesome_project => labrin_task}/templates/account/account_inactive.html (100%) rename {my_awesome_project => labrin_task}/templates/account/base.html (100%) rename {my_awesome_project => labrin_task}/templates/account/email.html (100%) rename {my_awesome_project => labrin_task}/templates/account/email_confirm.html (100%) rename {my_awesome_project => labrin_task}/templates/account/login.html (100%) rename {my_awesome_project => labrin_task}/templates/account/logout.html (100%) rename {my_awesome_project => labrin_task}/templates/account/password_change.html (100%) rename {my_awesome_project => labrin_task}/templates/account/password_reset.html (100%) rename {my_awesome_project => labrin_task}/templates/account/password_reset_done.html (100%) rename {my_awesome_project => labrin_task}/templates/account/password_reset_from_key.html (100%) rename {my_awesome_project => labrin_task}/templates/account/password_reset_from_key_done.html (100%) rename {my_awesome_project => labrin_task}/templates/account/password_set.html (100%) rename {my_awesome_project => labrin_task}/templates/account/signup.html (100%) rename {my_awesome_project => labrin_task}/templates/account/signup_closed.html (100%) rename {my_awesome_project => labrin_task}/templates/account/verification_sent.html (100%) rename {my_awesome_project => labrin_task}/templates/account/verified_email_required.html (100%) rename {my_awesome_project => labrin_task}/templates/main/base.html (100%) rename {my_awesome_project => labrin_task}/templates/pages/about.html (100%) rename {my_awesome_project => labrin_task}/templates/pages/create_filemodel.html (100%) rename {my_awesome_project => labrin_task}/templates/pages/filelist_swap.html (100%) rename {my_awesome_project => labrin_task}/templates/pages/filemodel_detail.html (100%) rename {my_awesome_project => labrin_task}/templates/pages/home.html (100%) rename {my_awesome_project => labrin_task}/templates/users/user_detail.html (100%) rename {my_awesome_project => labrin_task}/templates/users/user_form.html (100%) rename {my_awesome_project => labrin_task}/users/__init__.py (100%) rename {my_awesome_project => labrin_task}/users/adapters.py (100%) rename {my_awesome_project => labrin_task}/users/admin.py (92%) rename {my_awesome_project => labrin_task}/users/apps.py (69%) rename {my_awesome_project => labrin_task}/users/forms.py (100%) rename {my_awesome_project => labrin_task}/users/migrations/0001_initial.py (100%) rename {my_awesome_project => labrin_task}/users/migrations/__init__.py (100%) rename {my_awesome_project => labrin_task}/users/models.py (100%) rename {my_awesome_project => labrin_task}/users/tasks.py (100%) rename {my_awesome_project => labrin_task}/users/tests/__init__.py (100%) rename {my_awesome_project => labrin_task}/users/tests/factories.py (100%) rename {my_awesome_project => labrin_task}/users/tests/test_admin.py (96%) rename {my_awesome_project => labrin_task}/users/tests/test_forms.py (88%) rename {my_awesome_project => labrin_task}/users/tests/test_models.py (76%) rename {my_awesome_project => labrin_task}/users/tests/test_tasks.py (75%) rename {my_awesome_project => labrin_task}/users/tests/test_urls.py (92%) rename {my_awesome_project => labrin_task}/users/tests/test_views.py (93%) rename {my_awesome_project => labrin_task}/users/urls.py (88%) rename {my_awesome_project => labrin_task}/users/views.py (100%) rename {my_awesome_project => labrin_task}/utils/__init__.py (100%) rename {my_awesome_project => labrin_task}/utils/context_processors.py (100%) diff --git a/.editorconfig b/.editorconfig index ef15801..f82160c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,7 +14,7 @@ indent_size = 4 [*.py] line_length = 79 -known_first_party = my_awesome_project,config +known_first_party = labrin_task,config multi_line_output = 3 default_section = THIRDPARTY recursive = true diff --git a/.gitignore b/.gitignore index 2e7da7a..163a7f1 100644 --- a/.gitignore +++ b/.gitignore @@ -267,7 +267,7 @@ tags ### Project template -my_awesome_project/media/ +labrin_task/media/ .pytest_cache/ diff --git a/README.rst b/README.rst index d60e86b..96ada77 100644 --- a/README.rst +++ b/README.rst @@ -42,7 +42,7 @@ Running type checks with mypy: :: - $ mypy my_awesome_project + $ mypy labrin_task Test coverage ^^^^^^^^^^^^^ @@ -78,7 +78,7 @@ To run a celery worker: .. code-block:: bash - cd my_awesome_project + cd labrin_task celery -A config.celery_app worker -l info Please note: For Celery's import magic to work, it is important *where* the celery commands are run. If you are in the same folder with *manage.py*, you should be right. diff --git a/config/asgi.py b/config/asgi.py index b5c129a..fa2a1f1 100644 --- a/config/asgi.py +++ b/config/asgi.py @@ -5,9 +5,9 @@ from django.core.asgi import get_asgi_application # This allows easy placement of apps within the interior -# my_awesome_project directory. +# labrin_task directory. ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent -sys.path.append(str(ROOT_DIR / "my_awesome_project")) +sys.path.append(str(ROOT_DIR / "labrin_task")) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production") diff --git a/config/celery_app.py b/config/celery_app.py index 40f8e9c..ad66a57 100644 --- a/config/celery_app.py +++ b/config/celery_app.py @@ -6,7 +6,7 @@ # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") -app = Celery("my_awesome_project") +app = Celery("labrin_task") # Using a string here means the worker doesn't have to serialize # the configuration object to child processes. diff --git a/config/routing.py b/config/routing.py index a551312..63b0549 100644 --- a/config/routing.py +++ b/config/routing.py @@ -1,7 +1,7 @@ from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter -from my_awesome_project.chat.routing import websocket_urlpatterns +from labrin_task.chat.routing import websocket_urlpatterns application = ProtocolTypeRouter( {"websocket": AuthMiddlewareStack(URLRouter(websocket_urlpatterns))} diff --git a/config/settings/base.py b/config/settings/base.py index 06277e6..2f19c55 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -6,8 +6,8 @@ import environ ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent -# my_awesome_project/ -APPS_DIR = ROOT_DIR / "my_awesome_project" +# labrin_task/ +APPS_DIR = ROOT_DIR / "labrin_task" env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False) @@ -42,7 +42,7 @@ # https://docs.djangoproject.com/en/dev/ref/settings/#databases DATABASES = { - "default": env.db("DATABASE_URL", default="postgres:///my_awesome_project") + "default": env.db("DATABASE_URL", default="postgres:///labrin_task") } DATABASES["default"]["ATOMIC_REQUESTS"] = True @@ -77,9 +77,9 @@ ] LOCAL_APPS = [ - "my_awesome_project.chat.apps.ChatConfig", - "my_awesome_project.users.apps.UsersConfig", - "my_awesome_project.fileapp.apps.FileappConfig", + "labrin_task.chat.apps.ChatConfig", + "labrin_task.users.apps.UsersConfig", + "labrin_task.fileapp.apps.FileappConfig", ] # https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS @@ -87,7 +87,7 @@ # MIGRATIONS # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#migration-modules -MIGRATION_MODULES = {"sites": "my_awesome_project.contrib.sites.migrations"} +MIGRATION_MODULES = {"sites": "labrin_task.contrib.sites.migrations"} # AUTHENTICATION # ------------------------------------------------------------------------------ @@ -190,7 +190,7 @@ "django.template.context_processors.static", "django.template.context_processors.tz", "django.contrib.messages.context_processors.messages", - "my_awesome_project.utils.context_processors.settings_context", + "labrin_task.utils.context_processors.settings_context", ], }, } @@ -296,11 +296,9 @@ # https://django-allauth.readthedocs.io/en/latest/configuration.html ACCOUNT_EMAIL_VERIFICATION = "mandatory" # https://django-allauth.readthedocs.io/en/latest/configuration.html -ACCOUNT_ADAPTER = "my_awesome_project.users.adapters.AccountAdapter" +ACCOUNT_ADAPTER = "labrin_task.users.adapters.AccountAdapter" # https://django-allauth.readthedocs.io/en/latest/configuration.html -SOCIALACCOUNT_ADAPTER = ( - "my_awesome_project.users.adapters.SocialAccountAdapter" -) +SOCIALACCOUNT_ADAPTER = "labrin_task.users.adapters.SocialAccountAdapter" # Your stuff... @@ -319,7 +317,7 @@ CELERY_BEAT_SCHEDULE = { "delete_files_older_than_x_days": { - "task": "my_awesome_project.fileapp.tasks.delete_old_files", + "task": "labrin_task.fileapp.tasks.delete_old_files", "schedule": 20.0, } } diff --git a/config/urls.py b/config/urls.py index fba01aa..2a20d61 100644 --- a/config/urls.py +++ b/config/urls.py @@ -5,13 +5,13 @@ from django.views import defaults as default_views from django.views.generic import TemplateView -from my_awesome_project.fileapp.views import file_list_view +from labrin_task.fileapp.views import file_list_view urlpatterns = [ path("", file_list_view, name="home"), path( "files/", - include("my_awesome_project.fileapp.urls"), + include("labrin_task.fileapp.urls"), ), path( "about/", @@ -21,9 +21,7 @@ # Django Admin, use {% url 'admin:index' %} path(settings.ADMIN_URL, admin.site.urls), # User management - path( - "users/", include("my_awesome_project.users.urls", namespace="users") - ), + path("users/", include("labrin_task.users.urls", namespace="users")), path("accounts/", include("allauth.urls")), # Your stuff: custom urls includes go here ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/config/wsgi.py b/config/wsgi.py index 907fdb9..5ec486f 100644 --- a/config/wsgi.py +++ b/config/wsgi.py @@ -20,9 +20,9 @@ from django.core.wsgi import get_wsgi_application # This allows easy placement of apps within the interior -# my_awesome_project directory. +# labrin_task directory. ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent -sys.path.append(str(ROOT_DIR / "my_awesome_project")) +sys.path.append(str(ROOT_DIR / "labrin_task")) # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks # if running multiple sites in the same mod_wsgi process. To fix this, use # mod_wsgi daemon mode with each site in its own daemon process, or use diff --git a/docs/Makefile b/docs/Makefile index 9b121cb..6a2ce56 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -3,11 +3,11 @@ # You can set these variables from the command line, and also # from the environment for the first two. -SPHINXOPTS ?= +SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build -c . SOURCEDIR = . BUILDDIR = ./_build -APP = ../my_awesome_project +APP = ../labrin_task .PHONY: help livehtml apidocs Makefile @@ -22,7 +22,7 @@ livehtml: # Outputs rst files from django application code apidocs: - sphinx-apidoc -o $(SOURCEDIR)/api ../my_awesome_project + sphinx-apidoc -o $(SOURCEDIR)/api ../labrin_task # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). diff --git a/docs/howto.rst b/docs/howto.rst index ffc4a21..d2da5e0 100644 --- a/docs/howto.rst +++ b/docs/howto.rst @@ -4,15 +4,15 @@ How To - Project Documentation Get Started ---------------------------------------------------------------------- -Documentation can be written as rst files in the `my_awesome_project/docs/_source`. +Documentation can be written as rst files in the `labrin_task/docs/_source`. To build and serve docs, use the command: :: - - make livehtml - -from inside the `my_awesome_project/docs` directory. + + make livehtml + +from inside the `labrin_task/docs` directory. Changes to files in `docs/_source` will be picked up and reloaded automatically. @@ -30,6 +30,6 @@ For an in-use example, see the `page source <_sources/users.rst.txt>`_ for :ref: To compile all docstrings automatically into documentation source files, use the command: :: - + make apidocs diff --git a/docs/make.bat b/docs/make.bat index 106176d..b5e0819 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -10,7 +10,7 @@ if "%SPHINXBUILD%" == "" ( ) set SOURCEDIR=_source set BUILDDIR=_build -set APP=..\my_awesome_project +set APP=..\labrin_task if "%1" == "" goto help diff --git a/docs/users.rst b/docs/users.rst index 8c9fbf7..19aaa45 100644 --- a/docs/users.rst +++ b/docs/users.rst @@ -3,13 +3,13 @@ Users ====================================================================== -Starting a new project, it’s highly recommended to set up a custom user model, -even if the default User model is sufficient for you. +Starting a new project, it’s highly recommended to set up a custom user model, +even if the default User model is sufficient for you. -This model behaves identically to the default user model, +This model behaves identically to the default user model, but you’ll be able to customize it in the future if the need arises. -.. automodule:: my_awesome_project.users.models +.. automodule:: labrin_task.users.models :members: :noindex: diff --git a/my_awesome_project/__init__.py b/labrin_task/__init__.py similarity index 100% rename from my_awesome_project/__init__.py rename to labrin_task/__init__.py diff --git a/my_awesome_project/chat/__init__.py b/labrin_task/chat/__init__.py similarity index 100% rename from my_awesome_project/chat/__init__.py rename to labrin_task/chat/__init__.py diff --git a/my_awesome_project/chat/admin.py b/labrin_task/chat/admin.py similarity index 100% rename from my_awesome_project/chat/admin.py rename to labrin_task/chat/admin.py diff --git a/my_awesome_project/chat/apps.py b/labrin_task/chat/apps.py similarity index 63% rename from my_awesome_project/chat/apps.py rename to labrin_task/chat/apps.py index 8c8b953..8e8b366 100644 --- a/my_awesome_project/chat/apps.py +++ b/labrin_task/chat/apps.py @@ -2,4 +2,4 @@ class ChatConfig(AppConfig): - name = "my_awesome_project.chat" + name = "labrin_task.chat" diff --git a/my_awesome_project/chat/consumer.py b/labrin_task/chat/consumer.py similarity index 99% rename from my_awesome_project/chat/consumer.py rename to labrin_task/chat/consumer.py index 03803b2..8da89be 100644 --- a/my_awesome_project/chat/consumer.py +++ b/labrin_task/chat/consumer.py @@ -5,7 +5,7 @@ from django.contrib.auth import get_user_model from django.db.models.query_utils import Q -from my_awesome_project.fileapp.models import FileModel +from labrin_task.fileapp.models import FileModel from .models import ChatMessages diff --git a/my_awesome_project/chat/migrations/0001_initial.py b/labrin_task/chat/migrations/0001_initial.py similarity index 100% rename from my_awesome_project/chat/migrations/0001_initial.py rename to labrin_task/chat/migrations/0001_initial.py diff --git a/my_awesome_project/chat/migrations/0002_auto_20210207_2145.py b/labrin_task/chat/migrations/0002_auto_20210207_2145.py similarity index 100% rename from my_awesome_project/chat/migrations/0002_auto_20210207_2145.py rename to labrin_task/chat/migrations/0002_auto_20210207_2145.py diff --git a/my_awesome_project/chat/migrations/__init__.py b/labrin_task/chat/migrations/__init__.py similarity index 100% rename from my_awesome_project/chat/migrations/__init__.py rename to labrin_task/chat/migrations/__init__.py diff --git a/my_awesome_project/chat/models.py b/labrin_task/chat/models.py similarity index 79% rename from my_awesome_project/chat/models.py rename to labrin_task/chat/models.py index 888153e..ca38a18 100644 --- a/my_awesome_project/chat/models.py +++ b/labrin_task/chat/models.py @@ -1,8 +1,8 @@ from django.contrib.auth import get_user_model from django.db.models import CASCADE, SET_NULL, CharField, ForeignKey -from my_awesome_project.common import TimeStampedModel -from my_awesome_project.fileapp.models import FileModel +from labrin_task.common import TimeStampedModel +from labrin_task.fileapp.models import FileModel User = get_user_model() diff --git a/my_awesome_project/chat/routing.py b/labrin_task/chat/routing.py similarity index 100% rename from my_awesome_project/chat/routing.py rename to labrin_task/chat/routing.py diff --git a/my_awesome_project/chat/tests.py b/labrin_task/chat/tests.py similarity index 100% rename from my_awesome_project/chat/tests.py rename to labrin_task/chat/tests.py diff --git a/my_awesome_project/chat/urls.py b/labrin_task/chat/urls.py similarity index 100% rename from my_awesome_project/chat/urls.py rename to labrin_task/chat/urls.py diff --git a/my_awesome_project/chat/views.py b/labrin_task/chat/views.py similarity index 100% rename from my_awesome_project/chat/views.py rename to labrin_task/chat/views.py diff --git a/my_awesome_project/common.py b/labrin_task/common.py similarity index 100% rename from my_awesome_project/common.py rename to labrin_task/common.py diff --git a/my_awesome_project/conftest.py b/labrin_task/conftest.py similarity index 62% rename from my_awesome_project/conftest.py rename to labrin_task/conftest.py index 2d4169e..b429112 100644 --- a/my_awesome_project/conftest.py +++ b/labrin_task/conftest.py @@ -1,7 +1,7 @@ import pytest -from my_awesome_project.users.models import User -from my_awesome_project.users.tests.factories import UserFactory +from labrin_task.users.models import User +from labrin_task.users.tests.factories import UserFactory @pytest.fixture(autouse=True) diff --git a/my_awesome_project/contrib/__init__.py b/labrin_task/contrib/__init__.py similarity index 100% rename from my_awesome_project/contrib/__init__.py rename to labrin_task/contrib/__init__.py diff --git a/my_awesome_project/contrib/sites/__init__.py b/labrin_task/contrib/sites/__init__.py similarity index 100% rename from my_awesome_project/contrib/sites/__init__.py rename to labrin_task/contrib/sites/__init__.py diff --git a/my_awesome_project/contrib/sites/migrations/0001_initial.py b/labrin_task/contrib/sites/migrations/0001_initial.py similarity index 100% rename from my_awesome_project/contrib/sites/migrations/0001_initial.py rename to labrin_task/contrib/sites/migrations/0001_initial.py diff --git a/my_awesome_project/contrib/sites/migrations/0002_alter_domain_unique.py b/labrin_task/contrib/sites/migrations/0002_alter_domain_unique.py similarity index 100% rename from my_awesome_project/contrib/sites/migrations/0002_alter_domain_unique.py rename to labrin_task/contrib/sites/migrations/0002_alter_domain_unique.py diff --git a/my_awesome_project/contrib/sites/migrations/0003_set_site_domain_and_name.py b/labrin_task/contrib/sites/migrations/0003_set_site_domain_and_name.py similarity index 100% rename from my_awesome_project/contrib/sites/migrations/0003_set_site_domain_and_name.py rename to labrin_task/contrib/sites/migrations/0003_set_site_domain_and_name.py diff --git a/my_awesome_project/contrib/sites/migrations/0004_auto_20210205_2052.py b/labrin_task/contrib/sites/migrations/0004_auto_20210205_2052.py similarity index 100% rename from my_awesome_project/contrib/sites/migrations/0004_auto_20210205_2052.py rename to labrin_task/contrib/sites/migrations/0004_auto_20210205_2052.py diff --git a/my_awesome_project/contrib/sites/migrations/__init__.py b/labrin_task/contrib/sites/migrations/__init__.py similarity index 100% rename from my_awesome_project/contrib/sites/migrations/__init__.py rename to labrin_task/contrib/sites/migrations/__init__.py diff --git a/my_awesome_project/fileapp/Untitled-1.html b/labrin_task/fileapp/Untitled-1.html similarity index 100% rename from my_awesome_project/fileapp/Untitled-1.html rename to labrin_task/fileapp/Untitled-1.html diff --git a/my_awesome_project/fileapp/__init__.py b/labrin_task/fileapp/__init__.py similarity index 100% rename from my_awesome_project/fileapp/__init__.py rename to labrin_task/fileapp/__init__.py diff --git a/my_awesome_project/fileapp/admin.py b/labrin_task/fileapp/admin.py similarity index 100% rename from my_awesome_project/fileapp/admin.py rename to labrin_task/fileapp/admin.py diff --git a/my_awesome_project/fileapp/apps.py b/labrin_task/fileapp/apps.py similarity index 62% rename from my_awesome_project/fileapp/apps.py rename to labrin_task/fileapp/apps.py index a32b4b1..e27bb8c 100644 --- a/my_awesome_project/fileapp/apps.py +++ b/labrin_task/fileapp/apps.py @@ -2,4 +2,4 @@ class FileappConfig(AppConfig): - name = "my_awesome_project.fileapp" + name = "labrin_task.fileapp" diff --git a/my_awesome_project/fileapp/forms.py b/labrin_task/fileapp/forms.py similarity index 100% rename from my_awesome_project/fileapp/forms.py rename to labrin_task/fileapp/forms.py diff --git a/my_awesome_project/fileapp/migrations/0001_initial.py b/labrin_task/fileapp/migrations/0001_initial.py similarity index 100% rename from my_awesome_project/fileapp/migrations/0001_initial.py rename to labrin_task/fileapp/migrations/0001_initial.py diff --git a/my_awesome_project/fileapp/migrations/0002_auto_20210205_1431.py b/labrin_task/fileapp/migrations/0002_auto_20210205_1431.py similarity index 100% rename from my_awesome_project/fileapp/migrations/0002_auto_20210205_1431.py rename to labrin_task/fileapp/migrations/0002_auto_20210205_1431.py diff --git a/my_awesome_project/fileapp/migrations/0003_auto_20210205_2052.py b/labrin_task/fileapp/migrations/0003_auto_20210205_2052.py similarity index 100% rename from my_awesome_project/fileapp/migrations/0003_auto_20210205_2052.py rename to labrin_task/fileapp/migrations/0003_auto_20210205_2052.py diff --git a/my_awesome_project/fileapp/migrations/0004_auto_20210206_0940.py b/labrin_task/fileapp/migrations/0004_auto_20210206_0940.py similarity index 100% rename from my_awesome_project/fileapp/migrations/0004_auto_20210206_0940.py rename to labrin_task/fileapp/migrations/0004_auto_20210206_0940.py diff --git a/my_awesome_project/fileapp/migrations/0005_auto_20210206_1546.py b/labrin_task/fileapp/migrations/0005_auto_20210206_1546.py similarity index 100% rename from my_awesome_project/fileapp/migrations/0005_auto_20210206_1546.py rename to labrin_task/fileapp/migrations/0005_auto_20210206_1546.py diff --git a/my_awesome_project/fileapp/migrations/__init__.py b/labrin_task/fileapp/migrations/__init__.py similarity index 100% rename from my_awesome_project/fileapp/migrations/__init__.py rename to labrin_task/fileapp/migrations/__init__.py diff --git a/my_awesome_project/fileapp/models.py b/labrin_task/fileapp/models.py similarity index 95% rename from my_awesome_project/fileapp/models.py rename to labrin_task/fileapp/models.py index 30fdf96..4c247e4 100644 --- a/my_awesome_project/fileapp/models.py +++ b/labrin_task/fileapp/models.py @@ -9,7 +9,7 @@ ManyToManyField, ) -from my_awesome_project.common import TimeStampedModel +from labrin_task.common import TimeStampedModel User = get_user_model() # User = settings.AUTH_USER_MODEL diff --git a/my_awesome_project/fileapp/tasks.py b/labrin_task/fileapp/tasks.py similarity index 100% rename from my_awesome_project/fileapp/tasks.py rename to labrin_task/fileapp/tasks.py diff --git a/my_awesome_project/fileapp/tests.py b/labrin_task/fileapp/tests.py similarity index 95% rename from my_awesome_project/fileapp/tests.py rename to labrin_task/fileapp/tests.py index 25dbaaa..819365d 100644 --- a/my_awesome_project/fileapp/tests.py +++ b/labrin_task/fileapp/tests.py @@ -7,8 +7,8 @@ from django.test import TestCase from django.test.utils import override_settings -from my_awesome_project.fileapp.models import FileModel -from my_awesome_project.fileapp.tasks import delete_old_files +from labrin_task.fileapp.models import FileModel +from labrin_task.fileapp.tasks import delete_old_files User = get_user_model() diff --git a/my_awesome_project/fileapp/urls.py b/labrin_task/fileapp/urls.py similarity index 100% rename from my_awesome_project/fileapp/urls.py rename to labrin_task/fileapp/urls.py diff --git a/my_awesome_project/fileapp/views.py b/labrin_task/fileapp/views.py similarity index 100% rename from my_awesome_project/fileapp/views.py rename to labrin_task/fileapp/views.py diff --git a/my_awesome_project/static/css/project.css b/labrin_task/static/css/project.css similarity index 100% rename from my_awesome_project/static/css/project.css rename to labrin_task/static/css/project.css diff --git a/my_awesome_project/static/fonts/.gitkeep b/labrin_task/static/fonts/.gitkeep similarity index 100% rename from my_awesome_project/static/fonts/.gitkeep rename to labrin_task/static/fonts/.gitkeep diff --git a/my_awesome_project/static/images/favicons/favicon.ico b/labrin_task/static/images/favicons/favicon.ico similarity index 100% rename from my_awesome_project/static/images/favicons/favicon.ico rename to labrin_task/static/images/favicons/favicon.ico diff --git a/my_awesome_project/static/js/dropzone/basic.min.css b/labrin_task/static/js/dropzone/basic.min.css similarity index 100% rename from my_awesome_project/static/js/dropzone/basic.min.css rename to labrin_task/static/js/dropzone/basic.min.css diff --git a/my_awesome_project/static/js/dropzone/dropzone-amd-module.min.js b/labrin_task/static/js/dropzone/dropzone-amd-module.min.js similarity index 100% rename from my_awesome_project/static/js/dropzone/dropzone-amd-module.min.js rename to labrin_task/static/js/dropzone/dropzone-amd-module.min.js diff --git a/my_awesome_project/static/js/dropzone/dropzone.min.css b/labrin_task/static/js/dropzone/dropzone.min.css similarity index 100% rename from my_awesome_project/static/js/dropzone/dropzone.min.css rename to labrin_task/static/js/dropzone/dropzone.min.css diff --git a/my_awesome_project/static/js/dropzone/dropzone.min.js b/labrin_task/static/js/dropzone/dropzone.min.js similarity index 100% rename from my_awesome_project/static/js/dropzone/dropzone.min.js rename to labrin_task/static/js/dropzone/dropzone.min.js diff --git a/my_awesome_project/static/js/project.js b/labrin_task/static/js/project.js similarity index 100% rename from my_awesome_project/static/js/project.js rename to labrin_task/static/js/project.js diff --git a/my_awesome_project/static/js/websocket/reconnecting-websocket.min.js b/labrin_task/static/js/websocket/reconnecting-websocket.min.js similarity index 100% rename from my_awesome_project/static/js/websocket/reconnecting-websocket.min.js rename to labrin_task/static/js/websocket/reconnecting-websocket.min.js diff --git a/my_awesome_project/static/sass/custom_bootstrap_vars.scss b/labrin_task/static/sass/custom_bootstrap_vars.scss similarity index 100% rename from my_awesome_project/static/sass/custom_bootstrap_vars.scss rename to labrin_task/static/sass/custom_bootstrap_vars.scss diff --git a/my_awesome_project/static/sass/project.scss b/labrin_task/static/sass/project.scss similarity index 100% rename from my_awesome_project/static/sass/project.scss rename to labrin_task/static/sass/project.scss diff --git a/my_awesome_project/templates/403.html b/labrin_task/templates/403.html similarity index 100% rename from my_awesome_project/templates/403.html rename to labrin_task/templates/403.html diff --git a/my_awesome_project/templates/404.html b/labrin_task/templates/404.html similarity index 100% rename from my_awesome_project/templates/404.html rename to labrin_task/templates/404.html diff --git a/my_awesome_project/templates/500.html b/labrin_task/templates/500.html similarity index 100% rename from my_awesome_project/templates/500.html rename to labrin_task/templates/500.html diff --git a/my_awesome_project/templates/account/account_inactive.html b/labrin_task/templates/account/account_inactive.html similarity index 100% rename from my_awesome_project/templates/account/account_inactive.html rename to labrin_task/templates/account/account_inactive.html diff --git a/my_awesome_project/templates/account/base.html b/labrin_task/templates/account/base.html similarity index 100% rename from my_awesome_project/templates/account/base.html rename to labrin_task/templates/account/base.html diff --git a/my_awesome_project/templates/account/email.html b/labrin_task/templates/account/email.html similarity index 100% rename from my_awesome_project/templates/account/email.html rename to labrin_task/templates/account/email.html diff --git a/my_awesome_project/templates/account/email_confirm.html b/labrin_task/templates/account/email_confirm.html similarity index 100% rename from my_awesome_project/templates/account/email_confirm.html rename to labrin_task/templates/account/email_confirm.html diff --git a/my_awesome_project/templates/account/login.html b/labrin_task/templates/account/login.html similarity index 100% rename from my_awesome_project/templates/account/login.html rename to labrin_task/templates/account/login.html diff --git a/my_awesome_project/templates/account/logout.html b/labrin_task/templates/account/logout.html similarity index 100% rename from my_awesome_project/templates/account/logout.html rename to labrin_task/templates/account/logout.html diff --git a/my_awesome_project/templates/account/password_change.html b/labrin_task/templates/account/password_change.html similarity index 100% rename from my_awesome_project/templates/account/password_change.html rename to labrin_task/templates/account/password_change.html diff --git a/my_awesome_project/templates/account/password_reset.html b/labrin_task/templates/account/password_reset.html similarity index 100% rename from my_awesome_project/templates/account/password_reset.html rename to labrin_task/templates/account/password_reset.html diff --git a/my_awesome_project/templates/account/password_reset_done.html b/labrin_task/templates/account/password_reset_done.html similarity index 100% rename from my_awesome_project/templates/account/password_reset_done.html rename to labrin_task/templates/account/password_reset_done.html diff --git a/my_awesome_project/templates/account/password_reset_from_key.html b/labrin_task/templates/account/password_reset_from_key.html similarity index 100% rename from my_awesome_project/templates/account/password_reset_from_key.html rename to labrin_task/templates/account/password_reset_from_key.html diff --git a/my_awesome_project/templates/account/password_reset_from_key_done.html b/labrin_task/templates/account/password_reset_from_key_done.html similarity index 100% rename from my_awesome_project/templates/account/password_reset_from_key_done.html rename to labrin_task/templates/account/password_reset_from_key_done.html diff --git a/my_awesome_project/templates/account/password_set.html b/labrin_task/templates/account/password_set.html similarity index 100% rename from my_awesome_project/templates/account/password_set.html rename to labrin_task/templates/account/password_set.html diff --git a/my_awesome_project/templates/account/signup.html b/labrin_task/templates/account/signup.html similarity index 100% rename from my_awesome_project/templates/account/signup.html rename to labrin_task/templates/account/signup.html diff --git a/my_awesome_project/templates/account/signup_closed.html b/labrin_task/templates/account/signup_closed.html similarity index 100% rename from my_awesome_project/templates/account/signup_closed.html rename to labrin_task/templates/account/signup_closed.html diff --git a/my_awesome_project/templates/account/verification_sent.html b/labrin_task/templates/account/verification_sent.html similarity index 100% rename from my_awesome_project/templates/account/verification_sent.html rename to labrin_task/templates/account/verification_sent.html diff --git a/my_awesome_project/templates/account/verified_email_required.html b/labrin_task/templates/account/verified_email_required.html similarity index 100% rename from my_awesome_project/templates/account/verified_email_required.html rename to labrin_task/templates/account/verified_email_required.html diff --git a/my_awesome_project/templates/main/base.html b/labrin_task/templates/main/base.html similarity index 100% rename from my_awesome_project/templates/main/base.html rename to labrin_task/templates/main/base.html diff --git a/my_awesome_project/templates/pages/about.html b/labrin_task/templates/pages/about.html similarity index 100% rename from my_awesome_project/templates/pages/about.html rename to labrin_task/templates/pages/about.html diff --git a/my_awesome_project/templates/pages/create_filemodel.html b/labrin_task/templates/pages/create_filemodel.html similarity index 100% rename from my_awesome_project/templates/pages/create_filemodel.html rename to labrin_task/templates/pages/create_filemodel.html diff --git a/my_awesome_project/templates/pages/filelist_swap.html b/labrin_task/templates/pages/filelist_swap.html similarity index 100% rename from my_awesome_project/templates/pages/filelist_swap.html rename to labrin_task/templates/pages/filelist_swap.html diff --git a/my_awesome_project/templates/pages/filemodel_detail.html b/labrin_task/templates/pages/filemodel_detail.html similarity index 100% rename from my_awesome_project/templates/pages/filemodel_detail.html rename to labrin_task/templates/pages/filemodel_detail.html diff --git a/my_awesome_project/templates/pages/home.html b/labrin_task/templates/pages/home.html similarity index 100% rename from my_awesome_project/templates/pages/home.html rename to labrin_task/templates/pages/home.html diff --git a/my_awesome_project/templates/users/user_detail.html b/labrin_task/templates/users/user_detail.html similarity index 100% rename from my_awesome_project/templates/users/user_detail.html rename to labrin_task/templates/users/user_detail.html diff --git a/my_awesome_project/templates/users/user_form.html b/labrin_task/templates/users/user_form.html similarity index 100% rename from my_awesome_project/templates/users/user_form.html rename to labrin_task/templates/users/user_form.html diff --git a/my_awesome_project/users/__init__.py b/labrin_task/users/__init__.py similarity index 100% rename from my_awesome_project/users/__init__.py rename to labrin_task/users/__init__.py diff --git a/my_awesome_project/users/adapters.py b/labrin_task/users/adapters.py similarity index 100% rename from my_awesome_project/users/adapters.py rename to labrin_task/users/adapters.py diff --git a/my_awesome_project/users/admin.py b/labrin_task/users/admin.py similarity index 92% rename from my_awesome_project/users/admin.py rename to labrin_task/users/admin.py index 714d719..e5d86ac 100644 --- a/my_awesome_project/users/admin.py +++ b/labrin_task/users/admin.py @@ -3,7 +3,7 @@ from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ -from my_awesome_project.users.forms import UserChangeForm, UserCreationForm +from labrin_task.users.forms import UserChangeForm, UserCreationForm User = get_user_model() diff --git a/my_awesome_project/users/apps.py b/labrin_task/users/apps.py similarity index 69% rename from my_awesome_project/users/apps.py rename to labrin_task/users/apps.py index f2c64df..9eae5ad 100644 --- a/my_awesome_project/users/apps.py +++ b/labrin_task/users/apps.py @@ -3,11 +3,11 @@ class UsersConfig(AppConfig): - name = "my_awesome_project.users" + name = "labrin_task.users" verbose_name = _("Users") def ready(self): try: - import my_awesome_project.users.signals # noqa F401 + import labrin_task.users.signals # noqa F401 except ImportError: pass diff --git a/my_awesome_project/users/forms.py b/labrin_task/users/forms.py similarity index 100% rename from my_awesome_project/users/forms.py rename to labrin_task/users/forms.py diff --git a/my_awesome_project/users/migrations/0001_initial.py b/labrin_task/users/migrations/0001_initial.py similarity index 100% rename from my_awesome_project/users/migrations/0001_initial.py rename to labrin_task/users/migrations/0001_initial.py diff --git a/my_awesome_project/users/migrations/__init__.py b/labrin_task/users/migrations/__init__.py similarity index 100% rename from my_awesome_project/users/migrations/__init__.py rename to labrin_task/users/migrations/__init__.py diff --git a/my_awesome_project/users/models.py b/labrin_task/users/models.py similarity index 100% rename from my_awesome_project/users/models.py rename to labrin_task/users/models.py diff --git a/my_awesome_project/users/tasks.py b/labrin_task/users/tasks.py similarity index 100% rename from my_awesome_project/users/tasks.py rename to labrin_task/users/tasks.py diff --git a/my_awesome_project/users/tests/__init__.py b/labrin_task/users/tests/__init__.py similarity index 100% rename from my_awesome_project/users/tests/__init__.py rename to labrin_task/users/tests/__init__.py diff --git a/my_awesome_project/users/tests/factories.py b/labrin_task/users/tests/factories.py similarity index 100% rename from my_awesome_project/users/tests/factories.py rename to labrin_task/users/tests/factories.py diff --git a/my_awesome_project/users/tests/test_admin.py b/labrin_task/users/tests/test_admin.py similarity index 96% rename from my_awesome_project/users/tests/test_admin.py rename to labrin_task/users/tests/test_admin.py index 58c9f61..b47c568 100644 --- a/my_awesome_project/users/tests/test_admin.py +++ b/labrin_task/users/tests/test_admin.py @@ -1,7 +1,7 @@ import pytest from django.urls import reverse -from my_awesome_project.users.models import User +from labrin_task.users.models import User pytestmark = pytest.mark.django_db diff --git a/my_awesome_project/users/tests/test_forms.py b/labrin_task/users/tests/test_forms.py similarity index 88% rename from my_awesome_project/users/tests/test_forms.py rename to labrin_task/users/tests/test_forms.py index 9c235ba..4298554 100644 --- a/my_awesome_project/users/tests/test_forms.py +++ b/labrin_task/users/tests/test_forms.py @@ -1,7 +1,7 @@ import pytest -from my_awesome_project.users.forms import UserCreationForm -from my_awesome_project.users.tests.factories import UserFactory +from labrin_task.users.forms import UserCreationForm +from labrin_task.users.tests.factories import UserFactory pytestmark = pytest.mark.django_db diff --git a/my_awesome_project/users/tests/test_models.py b/labrin_task/users/tests/test_models.py similarity index 76% rename from my_awesome_project/users/tests/test_models.py rename to labrin_task/users/tests/test_models.py index cd0d5c9..ca39b37 100644 --- a/my_awesome_project/users/tests/test_models.py +++ b/labrin_task/users/tests/test_models.py @@ -1,6 +1,6 @@ import pytest -from my_awesome_project.users.models import User +from labrin_task.users.models import User pytestmark = pytest.mark.django_db diff --git a/my_awesome_project/users/tests/test_tasks.py b/labrin_task/users/tests/test_tasks.py similarity index 75% rename from my_awesome_project/users/tests/test_tasks.py rename to labrin_task/users/tests/test_tasks.py index 4ad4c2c..cc5ad63 100644 --- a/my_awesome_project/users/tests/test_tasks.py +++ b/labrin_task/users/tests/test_tasks.py @@ -1,8 +1,8 @@ import pytest from celery.result import EagerResult -from my_awesome_project.users.tasks import get_users_count -from my_awesome_project.users.tests.factories import UserFactory +from labrin_task.users.tasks import get_users_count +from labrin_task.users.tests.factories import UserFactory pytestmark = pytest.mark.django_db diff --git a/my_awesome_project/users/tests/test_urls.py b/labrin_task/users/tests/test_urls.py similarity index 92% rename from my_awesome_project/users/tests/test_urls.py rename to labrin_task/users/tests/test_urls.py index 5eb79c5..6e46fe7 100644 --- a/my_awesome_project/users/tests/test_urls.py +++ b/labrin_task/users/tests/test_urls.py @@ -1,7 +1,7 @@ import pytest from django.urls import resolve, reverse -from my_awesome_project.users.models import User +from labrin_task.users.models import User pytestmark = pytest.mark.django_db diff --git a/my_awesome_project/users/tests/test_views.py b/labrin_task/users/tests/test_views.py similarity index 93% rename from my_awesome_project/users/tests/test_views.py rename to labrin_task/users/tests/test_views.py index 70aa6c1..d8f3186 100644 --- a/my_awesome_project/users/tests/test_views.py +++ b/labrin_task/users/tests/test_views.py @@ -6,10 +6,10 @@ from django.http.response import Http404 from django.test import RequestFactory -from my_awesome_project.users.forms import UserChangeForm -from my_awesome_project.users.models import User -from my_awesome_project.users.tests.factories import UserFactory -from my_awesome_project.users.views import ( +from labrin_task.users.forms import UserChangeForm +from labrin_task.users.models import User +from labrin_task.users.tests.factories import UserFactory +from labrin_task.users.views import ( UserRedirectView, UserUpdateView, user_detail_view, diff --git a/my_awesome_project/users/urls.py b/labrin_task/users/urls.py similarity index 88% rename from my_awesome_project/users/urls.py rename to labrin_task/users/urls.py index 3d71fa4..667f7df 100644 --- a/my_awesome_project/users/urls.py +++ b/labrin_task/users/urls.py @@ -1,6 +1,6 @@ from django.urls import path -from my_awesome_project.users.views import ( +from labrin_task.users.views import ( user_detail_view, user_redirect_view, user_update_view, diff --git a/my_awesome_project/users/views.py b/labrin_task/users/views.py similarity index 100% rename from my_awesome_project/users/views.py rename to labrin_task/users/views.py diff --git a/my_awesome_project/utils/__init__.py b/labrin_task/utils/__init__.py similarity index 100% rename from my_awesome_project/utils/__init__.py rename to labrin_task/utils/__init__.py diff --git a/my_awesome_project/utils/context_processors.py b/labrin_task/utils/context_processors.py similarity index 100% rename from my_awesome_project/utils/context_processors.py rename to labrin_task/utils/context_processors.py diff --git a/manage.py b/manage.py index 0b45998..ba391af 100755 --- a/manage.py +++ b/manage.py @@ -24,8 +24,8 @@ raise # This allows easy placement of apps within the interior - # my_awesome_project directory. + # labrin_task directory. current_path = Path(__file__).parent.resolve() - sys.path.append(str(current_path / "my_awesome_project")) + sys.path.append(str(current_path / "labrin_task")) execute_from_command_line(sys.argv) diff --git a/setup.cfg b/setup.cfg index 6f2e363..522f022 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,7 +23,7 @@ django_settings_module = config.settings.test ignore_errors = True [coverage:run] -include = my_awesome_project/* +include = labrin_task/* omit = *migrations*, *tests* plugins = django_coverage_plugin