Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marianoeramirez committed Jul 8, 2024
1 parent 663e24f commit 90df467
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ venv/
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
*.code-workspace

venv/
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ FROM python:3.12-alpine
# Install MySQL and PostgreSQL client libraries
RUN apk update && apk add --no-cache \
mariadb-connector-c-dev \
postgresql-dev python3-dev musl-dev
postgresql-dev python3-dev musl-dev git

# Install Tox
RUN pip install tox
RUN tox -e dev

# Set the working directory
WORKDIR /app

# Copy the project files to the working directory
COPY . /app

RUN tox -e dev

# Set the entrypoint command
CMD ["tox"]
4 changes: 2 additions & 2 deletions src/cities_light/management/commands/cities_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

from ...settings import (
COUNTRY_SOURCES, REGION_SOURCES, SUBREGION_SOURCES, CITY_SOURCES,
TRANSLATION_SOURCES, DATA_DIR, TRANSLATION_LANGUAGES
TRANSLATION_SOURCES, DATA_DIR, TRANSLATION_LANGUAGES,
ICountry, IRegion, ISubRegion, ICity, IAlternate
)
from ...models import ICountry, IRegion, ISubRegion, ICity, IAlternate
from ...signals import (
country_items_pre_import, region_items_pre_import,
subregion_items_pre_import, city_items_pre_import,
Expand Down
4 changes: 2 additions & 2 deletions src/cities_light/migrations/0003_auto_20141120_0342.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.db import migrations
import cities_light.models
from cities_light.abstract_models import ToSearchTextField

from cities_light.settings import INDEX_SEARCH_NAMES

Expand All @@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='city',
name='search_names',
field=cities_light.models.ToSearchTextField(default=b'', max_length=4000, db_index=INDEX_SEARCH_NAMES, blank=True),
field=ToSearchTextField(default=b'', max_length=4000, db_index=INDEX_SEARCH_NAMES, blank=True),
preserve_default=True,
),
]

0 comments on commit 90df467

Please sign in to comment.