Quer ler este README em português? Clique aqui
This repository serves as a template for starting projects in Python (version 3.12) with the Django framework (version 5.0).
This Django project is Dockerized and follows the principles of Clean Architecture. It provides a solid structure for developing a variety of applications, from APIs to web applications.
Follow these steps to run the project:
-
Clone the Repository:
git clone [email protected]:luderibeiro/django_base.git
-
Set Up the Environment:
- Create a
.env
file in the project root and add necessary configurations such as API keys, database settings, etc.
-
Run Docker Compose:
docker-compose up --build
Note: The
--build flag should be executed only the first time the project is installed or when there are changes in the build files.
-
Access the Application: The application will be available at
http://localhost:8000
.If you want to access the admin page, simply go to
http://localhost:8000/admin/
.
Error Handling
-
In case you encounter this error: PermissionError: [Errno 13] Permission denied: '/data/web/static/admin' Run the following command:
sudo chown -R user:group data
Note: Replace "user" with your local machine username and "group" with the user's group.
Feel free to contribute improvements or new features. Just follow these steps:
- Fork the repository.
- Create a branch for your contribution:
git checkout -b feature/new-feature
. - Make your changes and commit:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature/new-feature
. - Open a pull request.
This project is licensed under the MIT License.