This is a template for creating a ResCraft project.
To use this template rename the restcraft_app
to your project name, then edit the settings.py
and the __init__.py
.
# your_project_name/settings.py
VIEWS = {
"YOUR_PROJECT_NAME.views.my_view",
}
# your_project_name/__init__.py
os.environ.setdefault('RESTCRAFT_SETTINGS_MODULE', 'YOUR_PROJECT_NAME.settings')
or you can use this one line command:
# Run this command inside the clonned template
mv restcraft_app YOUR_PROJECT_NAME && find . -type f -exec sed -i 's/restcraft_app/YOUR_PROJECT_NAME/g' {} +
Then install the dependencies.
pdm install
Here are some scripts that you can use:
# Start the development server with automatic reload.
pdm dev
# Unittesting
pdm test