Skip to content

Commit

Permalink
Change Django app architecture
Browse files Browse the repository at this point in the history
Following previus discussion on another Serenata Django project:
okfn-brasil/jarbas#28
  • Loading branch information
cuducos committed Jul 25, 2018
1 parent d196876 commit d45bdf5
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions docker-compose.yml
Expand Up @@ -3,15 +3,15 @@ services:

django:
build:
context: perfil
context: .
depends_on:
- db
env_file:
- .env
ports:
- "8000:8000"
volumes:
- ./perfil:/code
- ./perfil:/code/perfil

notebooks:
build:
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions perfil/election/models.py
@@ -1,7 +1,7 @@
from django.db import models

from party.models import Party
from person.models import Person
from perfil.party.models import Party
from perfil.person.models import Person
from .choices import ELECTION_RESULT, POSITIONS


Expand Down
4 changes: 2 additions & 2 deletions perfil/mandate/models.py
@@ -1,7 +1,7 @@
from django.db import models

from party.models import Party
from person.models import Person
from perfil.party.models import Party
from perfil.person.models import Person


class Politic(models.Model):
Expand Down
2 changes: 1 addition & 1 deletion perfil/person/admin.py
@@ -1,6 +1,6 @@
from django.contrib import admin

from election.models import Election
from perfil.election.models import Election
from .models import Person


Expand Down
2 changes: 1 addition & 1 deletion perfil/person/models.py
@@ -1,6 +1,6 @@
from django.db import models

from utils.infos import STATES
from perfil.utils.infos import STATES


class Person(models.Model):
Expand Down
12 changes: 6 additions & 6 deletions perfil/perfil/settings.py → perfil/settings.py
Expand Up @@ -40,12 +40,12 @@
'django.contrib.staticfiles',

# apps
'company',
'election',
'mandate',
'party',
'person',
'utils',
'perfil.company',
'perfil.election',
'perfil.mandate',
'perfil.party',
'perfil.person',
'perfil.utils',

# third-party
'django_extensions',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d45bdf5

Please sign in to comment.