This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can an admin GET any endpoint? | |
Can an admin POST any endpoint? | |
Can an admin PUT any endpoint? | |
Can an admin PATCH any endpoint? | |
Can an admin DELETE any endpoint? | |
Can a user GET thier endpoint? | |
Can a user POST thier endpoint? | |
Can a user PUT thier endpoint? | |
Can a user PATCH thier endpoint? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEDIA_STATIC_ROOT = os.path.join(PROJECT_PATH, '..', 'site_media', 'static') | |
MEDIA_STATIC_URL = '/site_media/static/' | |
MEDIA_ROOT = os.path.join(PROJECT_PATH, os.pardir, '..', 'site_media', 'dynamic') | |
MEDIA_URL = '/site_media/dynamic/' | |
MEDIASYNC = { | |
'MEDIA_ROOT': MEDIA_STATIC_ROOT, | |
'MEDIA_URL': MEDIA_STATIC_URL, | |
'BACKEND':'mediasync.backends.s3', | |
'AWS_KEY':'XXXXXXXXXXXXXXXXXX', | |
'AWS_SECRET':'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEDIA_STATIC_ROOT = os.path.join(PROJECT_PATH, '..', 'site_media', 'static') | |
MEDIA_STATIC_URL = '/site_media/static/' | |
MEDIA_ROOT = os.path.join(PROJECT_PATH, os.pardir, '..', 'site_media', 'dynamic') | |
MEDIA_URL = '/site_media/dynamic/' | |
MEDIASYNC = { | |
'MEDIA_ROOT': MEDIA_STATIC_ROOT, | |
'MEDIA_URL': MEDIA_STATIC_URL, | |
'BACKEND':'mediasync.backends.s3', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEDIA_STATIC_ROOT = os.path.join(PROJECT_PATH, '..', 'site_media', 'static') | |
MEDIA_STATIC_URL = '/site_media/static/' | |
MEDIA_ROOT = os.path.join(PROJECT_PATH, os.pardir, '..', 'site_media', 'dynamic') | |
MEDIA_URL = '/site_media/dynamic/' | |
MEDIASYNC = { | |
'MEDIA_ROOT': MEDIA_STATIC_ROOT, | |
'MEDIA_URL': MEDIA_STATIC_URL, | |
'BACKEND':"mediasync.backends.s3", | |
'AWS_KEY':"XXXXXXXXXXXXXXX", | |
'AWS_SECRET':"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "manage.py", line 11, in <module> | |
execute_manager(settings) | |
File "/home/XXXXXXXXX/webapps/XXXXXXXXX/lib/python2.5/django/core/management/__init__.py", line 362, in execute_manager | |
utility.execute() | |
File "/home/XXXXXXXXX/webapps/XXXXXXXXX/lib/python2.5/django/core/management/__init__.py", line 303, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/home/XXXXXXXXX/webapps/XXXXXXXXX/lib/python2.5/django/core/management/base.py", line 195, in run_from_argv | |
self.execute(*args, **options.__dict__) | |
File "/home/XXXXXXXXX/webapps/XXXXXXXXX/lib/python2.5/django/core/management/base.py", line 222, in execute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#slideshow').loopedSlider({ | |
addPagination: true, | |
slides: ".slides", | |
containerClick: true, | |
autoStart: 6000, | |
fadespeed: 2000, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
behavior: url(http://path-to-file.com/ie-css3.htc); /* Add me to any box or text shadow and rounded corner object to execute in IE7 and 8 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddType application/vnd.ms-fontobject .eot | |
AddType font/ttf .ttf | |
AddType font/otf .otf | |
AddType application/x-font-woff woff | |
<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "http://*.domainname.org" | |
</IfModule> | |
</FilesMatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
node: true | |
}, | |
parserOptions: { | |
parser: 'babel-eslint' | |
}, | |
extends: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Digialocean | |
Postgres | |
To dump: pg_dump -h localhost -U USERNAME DATABASENMAE > /home/NAME/DATABASENAME.sql | |
To import: psql -h localhost -U username databasename < databasename.sql | |
Python | |
python3 -m venv /path/to/new/virtual/environment | |
find . -name '*.pyc' -delete - gets rid of old .pyc files |
OlderNewer