mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
2
.gitignore
vendored
2
.gitignore
vendored
@@ -129,5 +129,5 @@ dmypy.json
|
|||||||
.pyre/
|
.pyre/
|
||||||
|
|
||||||
*.swp
|
*.swp
|
||||||
dcc/storage
|
ram/storage
|
||||||
arduino/CommandStation-EX/build/
|
arduino/CommandStation-EX/build/
|
||||||
|
@@ -10,7 +10,7 @@ from rest_framework.permissions import (
|
|||||||
SAFE_METHODS
|
SAFE_METHODS
|
||||||
)
|
)
|
||||||
|
|
||||||
from dcc.parsers import PlainTextParser
|
from ram.parsers import PlainTextParser
|
||||||
from driver.models import DriverConfiguration
|
from driver.models import DriverConfiguration
|
||||||
from driver.connector import Connector
|
from driver.connector import Connector
|
||||||
from driver.serializers import (
|
from driver.serializers import (
|
@@ -6,7 +6,7 @@ import sys
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Run administrative tasks."""
|
"""Run administrative tasks."""
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dcc.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ram.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:
|
@@ -3,7 +3,7 @@ from django.conf import settings
|
|||||||
from django.dispatch.dispatcher import receiver
|
from django.dispatch.dispatcher import receiver
|
||||||
from django_countries.fields import CountryField
|
from django_countries.fields import CountryField
|
||||||
|
|
||||||
from dcc.utils import get_image_preview, slugify
|
from ram.utils import get_image_preview, slugify
|
||||||
|
|
||||||
|
|
||||||
class Property(models.Model):
|
class Property(models.Model):
|
@@ -1,7 +1,7 @@
|
|||||||
import django
|
import django
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
from dcc import __version__ as app_version
|
from ram import __version__ as app_version
|
||||||
from solo.models import SingletonModel
|
from solo.models import SingletonModel
|
||||||
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
from dcc.utils import git_suffix
|
from ram.utils import git_suffix
|
||||||
|
|
||||||
__version__ = '0.0.1'
|
__version__ = '0.0.1'
|
||||||
__version__ += git_suffix(__file__)
|
__version__ += git_suffix(__file__)
|
@@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
ASGI config for dcc project.
|
ASGI config for ram project.
|
||||||
|
|
||||||
It exposes the ASGI callable as a module-level variable named ``application``.
|
It exposes the ASGI callable as a module-level variable named ``application``.
|
||||||
|
|
||||||
@@ -11,6 +11,6 @@ import os
|
|||||||
|
|
||||||
from django.core.asgi import get_asgi_application
|
from django.core.asgi import get_asgi_application
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dcc.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ram.settings")
|
||||||
|
|
||||||
application = get_asgi_application()
|
application = get_asgi_application()
|
@@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Django settings for dcc project.
|
Django settings for ram project.
|
||||||
|
|
||||||
Generated by 'django-admin startproject' using Django 4.0.
|
Generated by 'django-admin startproject' using Django 4.0.
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ INSTALLED_APPS = [
|
|||||||
"solo",
|
"solo",
|
||||||
"rest_framework",
|
"rest_framework",
|
||||||
"adminsortable2",
|
"adminsortable2",
|
||||||
"dcc",
|
"ram",
|
||||||
"portal",
|
"portal",
|
||||||
"driver",
|
"driver",
|
||||||
"metadata",
|
"metadata",
|
||||||
@@ -64,7 +64,7 @@ MIDDLEWARE = [
|
|||||||
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
||||||
]
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = "dcc.urls"
|
ROOT_URLCONF = "ram.urls"
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ TEMPLATES = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
WSGI_APPLICATION = "dcc.wsgi.application"
|
WSGI_APPLICATION = "ram.wsgi.application"
|
||||||
|
|
||||||
|
|
||||||
# Database
|
# Database
|
@@ -1,4 +1,4 @@
|
|||||||
"""dcc URL Configuration
|
"""ram URL Configuration
|
||||||
|
|
||||||
The `urlpatterns` list routes URLs to views. For more information please see:
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||||
https://docs.djangoproject.com/en/4.0/topics/http/urls/
|
https://docs.djangoproject.com/en/4.0/topics/http/urls/
|
@@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
WSGI config for dcc project.
|
WSGI config for ram 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", "dcc.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ram.settings")
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
@@ -5,7 +5,7 @@ from django.db import models
|
|||||||
# from django.core.files.storage import FileSystemStorage
|
# from django.core.files.storage import FileSystemStorage
|
||||||
# from django.dispatch import receiver
|
# from django.dispatch import receiver
|
||||||
|
|
||||||
from dcc.utils import get_image_preview
|
from ram.utils import get_image_preview
|
||||||
from metadata.models import (
|
from metadata.models import (
|
||||||
Property,
|
Property,
|
||||||
Scale,
|
Scale,
|
Reference in New Issue
Block a user