Skip to content

Commit

Permalink
Add resume
Browse files Browse the repository at this point in the history
  • Loading branch information
yaozeliangtest committed Apr 28, 2020
1 parent 475c440 commit 1c5487b
Show file tree
Hide file tree
Showing 126 changed files with 1,010 additions and 16 deletions.
Binary file modified my_blog/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file modified my_blog/__pycache__/urls.cpython-38.pyc
Binary file not shown.
18 changes: 9 additions & 9 deletions my_blog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
ALLOWED_HOSTS = ['*']



# Application definition

INSTALLED_APPS = [
Expand All @@ -48,13 +47,14 @@
'allauth.socialaccount',
'allauth.socialaccount.providers.github',
'rest_framework',
'resume',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'whitenoise.runserver_nostatic', # new!
# 'whitenoise.runserver_nostatic', # new!
'django.contrib.staticfiles',
]

Expand All @@ -70,7 +70,7 @@
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware', # new!
# 'whitenoise.middleware.WhiteNoiseMiddleware', # new!
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down Expand Up @@ -230,8 +230,8 @@



# STATIC_URL = '/static/'
# STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]


# """Deploy setting
Expand All @@ -242,7 +242,7 @@
# """


STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # new
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
# STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # new
# STATIC_URL = '/static/'
# STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
# STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
1 change: 1 addition & 0 deletions my_blog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
path('notice/', include('notice.urls')),
path('accounts/', include('allauth.urls')),
path('api/',include("api.urls")),
path('resume/',include("resume.urls")),
]


Expand Down
Empty file added resume/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions resume/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
5 changes: 5 additions & 0 deletions resume/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class ResumeConfig(AppConfig):
name = 'resume'
Empty file added resume/migrations/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions resume/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions resume/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
9 changes: 9 additions & 0 deletions resume/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.urls import path,include
from . import views


app_name='resume'

urlpatterns = [
path("",views.ResumeView.as_view(),name='resume')
]
7 changes: 7 additions & 0 deletions resume/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.shortcuts import render
from django.views.generic import TemplateView

# Create your views here.

class ResumeView(TemplateView):
template_name='resume/resume.html'
2 changes: 2 additions & 0 deletions static/layui/css/layui.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/layui/css/layui.mobile.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions static/layui/css/modules/code.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1c5487b

Please sign in to comment.