Skip to content

snedvigimost/snedvigimost-back

Repository files navigation

real-estate

Build Status Built with

Its all about a Weissman score > 5.0. Check out the project's documentation.

Prerequisites

Local Development

poetry env info -p poetry run python manage.py runserver 4222

Start the dev server for local development:

docker-compose up

Run a command inside the docker container:

docker-compose run --rm web [command]

http://127.0.0.1:4222/swagger/ http://127.0.0.1:4222/admin/

sudo service postgresql stop

python manage.py runserver 4222

python manage.py startapp countries python manage.py makemigrations python manage.py migrate

https://django-modeltranslation.readthedocs.io/en/latest/commands.html#commands-update-translation-fields python manage.py update_translation_fields

https://dephell.readthedocs.io/cmd-deps-convert.html dephell deps convert --from=pyproject.toml --to=requirements.txt

scp db.json [email protected]:/root/snedvigimost-back docker-compose run web bash python manage.py loaddata db2.json

Django : Transfer data from Sqlite to another database

python manage.py dumpdata > db.json
Change the database settings to new database such as of MySQL / PostgreSQL.
python manage.py migrate
python manage.py shell 
Enter the following in the shell
from django.contrib.contenttypes.models import ContentType
ContentType.objects.all().delete()
python manage.py loaddata db.json

from realestate.listings.models import Listing
from django.contrib.gis.geos import Point

kk = Listing.objects.get(pk=1)

grubber

in order poetry run python street_grub.py
poetry run python district_grub_main.py

About

Master's thesis - real estate website backend

Topics

Resources

Stars

Watchers

Forks

Languages