This project relize:
- CRUD news;
- Import/export xlsx file with intresting places into/from django admin;
- Send mails to contacts from django admin.
- Setup project into you directory:
git clone
- Rename .env.example file to .env and set constants.
- In docker-compose.yml so set contats for you database.
- Run docker-compose:
docker-compose up --build -d
After this you have to create superuser for you:
docker-compose exec webapp python manage.py createsuperuser
And go to 127.0.0.1:8000
You can create news in admin for this path:
localhost:8000/admin
- login with your password
- In admin you can change title/content by rich text
For use API use path: localhost:8000/api/new
for chech all news and
localhost:8000/api/new/id
- for once new (where id - id-number of new)
In admin site you can import xlsx fiiles into places, by clicked into button "Import" and select a file.
In admin site change title/content of mail by constance, set recipients in contact table.
Then go to localhost:8000/send_mail