Conversation
|
Deploy request for awesomestacks accepted. Accepted with commit b87383e https://app.netlify.com/sites/awesomestacks/deploys/5f59c879026a7900087210cc |
Import the necessary librariesimport os Set the project directoryproject_dir = os.path.dirname(os.path.abspath(file)) Create a Django projectdjango.setup(project_dir) Create a new appos.system('python manage.py startapp digital_marketing') Add the app to the INSTALLED_APPS settingwith open(os.path.join(project_dir, 'settings.py'), 'a') as f: Create a modelos.system('python manage.py makemigrations digital_marketing') Create a viewwith open(os.path.join(project_dir, 'digital_marketing/views.py'), 'w') as f: def home(request): Create a templatewith open(os.path.join(project_dir, 'digital_marketing/templates/digital_marketing/home.html'), 'w') as f: {% block content %} Welcome to the Digital Marketing website!{% endblock %} """)Start the serveros.system('python manage.py runserver') |
For all PRs
For new stacks