css transition, animation에서 사용 가능한 timing function을 만들게 해주는 사이트
https://www.youtube.com/watch?v=8cupCFknL4Q&list=PLEsfXFp6DpzRcd-q4vR5qAgOZUuz8041S&index=17
와 https://www.youtube.com/watch?v=M-4xmVk6xrg&index=18&list=PLEsfXFp6DpzRcd-q4vR5qAgOZUuz8041S
의 내용 참조
기본적으로 settings.py에
STATIC_URL = ’/static/’
STATIC_ROOT= os.path.join(BASE_DIR, ‘mysite/static/root’)
STATICFILES_DIRS = [os.path.join(BASE_DIR, ‘mysite/static/url/snowboard’),
]
의 내용이 있다.
STATIC_URL은 실제 웹페이지 내용중에 사용되게 될 경로
STATIC_ROOT은 python manage.py collectstatic 을 통해 화일들이 최종 이동하게될 위치
STATICFILES_DIRS 은 개발자가 static files을 보관하는 곳.
https://www.youtube.com/watch?v=8cupCFknL4Q&list=PLEsfXFp6DpzRcd-q4vR5qAgOZUuz8041S&index=17
와 https://www.youtube.com/watch?v=M-4xmVk6xrg&index=18&list=PLEsfXFp6DpzRcd-q4vR5qAgOZUuz8041S
의 내용 참조
기본적으로 settings.py에
STATIC_URL = ’/static/’
STATIC_ROOT= os.path.join(BASE_DIR, ‘mysite/static/root’)
STATICFILES_DIRS = [os.path.join(BASE_DIR, ‘mysite/static/url/snowboard’),
]
의 내용이 있다.
STATIC_URL은 실제 웹페이지 내용중에 사용되게 될 경로
STATIC_ROOT은 python manage.py collectstatic 을 통해 화일들이 최종 이동하게될 위치
STATICFILES_DIRS 은 개발자가 static files을 보관하는 곳.
python manage.py runserver 를 통해 임시로 내용 확인
1. python manage.py collectstatic
명령을 통해 static화일을 STATIC_ROOT로 옮긴다.
2. git add .
3. git commit -m “기입할내용”
4. git push heroku master
heroku로 화일 올림
python manage.py runserver 를 통해 임시로 내용 확인
1. python manage.py collectstatic
명령을 통해 static화일을 STATIC_ROOT로 옮긴다.
2. git add .
3. git commit -m “기입할내용”
4. git push heroku master
heroku로 화일 올림
https://devcenter.heroku.com/articles/getting-started-with-python#introduction
heroku 설명 웹사이트와 https://www.youtube.com/watch?v=WaICRuGJnGY
django heroku depoly tutorial을 참조해서 얻은 정보이다.
1. 기본적으로 필요한 프로그램 등을 확인후 설치한다.
2. heroku cli 를 설치한다.
3. heroku login을 통해 heroku계정에 접속한다.
4. deploy 하려는 django app 폴더로 이동한다. manage.py가 있는 폴더로 이동. 그 폴더 안에는 Procfile, requirements.txt 화일이 있어야 한다.
Procfile내용
web: gunicorn <마이사이트 즉 앱이름>.wsgi –log-file –
requirements.txt 내용
dj-database-url==0.4.0 Django==1.9.2 gunicorn==19.4.5 psycopg2==2.6.1 whitenoise==2.0.6
5. manage.py 와 Procfile있는 폴더내에서 git init 명령을 통해 git을 시작한다.
6. git add .
7. git commit -m “기입할내용”
8. manage.py가 있는 폴더에서 heroku create 명령을 친다.
9. git push heroku master
실제 heroku로 화일 올리는 작업.
10. The application is now deployed. Ensure that at least one instance of the app is running:
heroku ps:scale web=1
명령을 친다.
11. 웹브라우저로 잘 작동하는지 확인한다.