Lets say we got two apps: common and specific:
myproject/
|-- common
| |-- migrations
| | |-- 0001_initial.py
| | `-- 0002_create_cat.py
| # install Pillow on Mac | |
| CFLAGS=-I/usr/X11/include/freetype2/ pip install Pillow |
| class CourseDelete(DeleteView): | |
| model = Course | |
| success_url = reverse_lazy('app:success_url') | |
| def get(self, *args, **kwargs): | |
| """Override to ignore confirm delete page""" | |
| return self.post(*args, **kwargs) |
| #!/bin/bash | |
| # File: laravel_project.sh | |
| # Description: Script created to facilitate the creation of a project laravel using composer. | |
| # | |
| # Use: ./laravel_project <project name> | |
| # | |
| green='\e[0;32m' # '\e[1;32m' is too bright for white bg. | |
| endColor='\e[0m' |
| # -*- coding: utf-8 -*- | |
| import os | |
| import dj_database_url | |
| from unipath import Path | |
| PROJECT_PATH = Path(__file__).parent |
| INSTALLED_APPS = ( | |
| # Django apps | |
| # Third-party apps | |
| 'storages', | |
| # Project apps | |
| ) |
| <html> | |
| <head> | |
| <title>EAD-HTML Aula nro 1</title> | |
| </head> | |
| <body> | |
| <p>Sejam bem vindos ao Curso EAD de Análise e Desenvolvimento de Software.</p> | |
| </body> | |
| </html> |