Rename the package to strojnadzor

This commit is contained in:
Andrey Golovizin 2020-02-07 22:30:11 +01:00
parent c975ca6f19
commit fece22b5ec
20 changed files with 17 additions and 19 deletions

View file

@ -2,8 +2,6 @@
from setuptools import find_packages, setup from setuptools import find_packages, setup
progname = 'pybtex'
setup( setup(
name='strojnadzor', name='strojnadzor',
version='0.0.1', version='0.0.1',
@ -20,7 +18,7 @@ setup(
include_package_data=True, include_package_data=True,
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'strojnadzor-admin = mysite.__main__:main', 'strojnadzor-admin = strojnadzor.__main__:main',
], ],
}, },
) )

View file

@ -6,11 +6,11 @@ requirements_frozen.txt
requirements_override.nix requirements_override.nix
setup.py setup.py
shell.nix shell.nix
src/mysite/__init__.py src/strojnadzor/__init__.py
src/mysite/__main__.py src/strojnadzor/__main__.py
src/mysite/settings.py src/strojnadzor/settings.py
src/mysite/urls.py src/strojnadzor/urls.py
src/mysite/wsgi.py src/strojnadzor/wsgi.py
src/strojnadzor.egg-info/PKG-INFO src/strojnadzor.egg-info/PKG-INFO
src/strojnadzor.egg-info/SOURCES.txt src/strojnadzor.egg-info/SOURCES.txt
src/strojnadzor.egg-info/dependency_links.txt src/strojnadzor.egg-info/dependency_links.txt

View file

@ -1,3 +1,3 @@
[console_scripts] [console_scripts]
strojnadzor-admin = mysite.__main__:main strojnadzor-admin = strojnadzor.__main__:main

View file

@ -1 +1 @@
mysite strojnadzor

View file

@ -5,7 +5,7 @@ import sys
def main(): def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'strojnadzor.settings')
try: try:
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
except ImportError as exc: except ImportError as exc:

View file

@ -2,7 +2,7 @@ import os # isort:skip
gettext = lambda s: s gettext = lambda s: s
DATA_DIR = os.path.dirname(os.path.dirname(__file__)) DATA_DIR = os.path.dirname(os.path.dirname(__file__))
""" """
Django settings for mysite project. Django settings for strojnadzor project.
Generated by 'django-admin startproject' using Django 2.2.9. Generated by 'django-admin startproject' using Django 2.2.9.
@ -37,11 +37,11 @@ ALLOWED_HOSTS = []
ROOT_URLCONF = 'mysite.urls' ROOT_URLCONF = 'strojnadzor.urls'
WSGI_APPLICATION = 'mysite.wsgi.application' WSGI_APPLICATION = 'strojnadzor.wsgi.application'
# Database # Database
@ -92,7 +92,7 @@ MEDIA_ROOT = os.path.join(DATA_DIR, 'media')
STATIC_ROOT = os.path.join(DATA_DIR, 'static') STATIC_ROOT = os.path.join(DATA_DIR, 'static')
STATICFILES_DIRS = ( STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'mysite', 'static'), os.path.join(BASE_DIR, 'strojnadzor', 'static'),
) )
SITE_ID = 1 SITE_ID = 1
@ -100,7 +100,7 @@ SITE_ID = 1
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'mysite', 'templates'),], 'DIRS': [os.path.join(BASE_DIR, 'strojnadzor', 'templates'),],
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
@ -170,7 +170,7 @@ INSTALLED_APPS = [
'sekizai', 'sekizai',
'treebeard', 'treebeard',
'mysite' 'strojnadzor'
] ]
LANGUAGES = ( LANGUAGES = (

View file

@ -1,5 +1,5 @@
""" """
WSGI config for mysite project. WSGI config for strojnadzor project.
It exposes the WSGI callable as a module-level variable named ``application``. It exposes the WSGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'strojnadzor.settings')
application = get_wsgi_application() application = get_wsgi_application()