Skip to content

Commit 9f179cb

Browse files
authored
Merge pull request #23 from farooq13/base
finish production setup
2 parents 0fbb5ab + 7da7d91 commit 9f179cb

File tree

8 files changed

+15
-12
lines changed

8 files changed

+15
-12
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
env/
2+
media/
3+
static/
4+
node/
5+
__pycache__/
6+
.env
7+
.DS_Store
8+
db.sqlite3

base/templates/base/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta charset="UTF-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0">
99
<script src="https://kit.fontawesome.com/a13e3d893a.js" crossorigin="anonymous"></script>
10-
<link rel="stylesheet" href="{% if debug %}{% static 'css/style.css' %} {% else %} {% static 'css/style.min.css' %} {% endif %}">
10+
<link rel="stylesheet" href="{% if debug %} {% static 'css/style.css' %} {% else %} {% static 'css/style.min.css' %} {% endif %}">
1111

1212
{% tailwind_css %}
1313
<title>Document</title>

db.sqlite3

0 Bytes
Binary file not shown.

node/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"name": "node",
33
"version": "1.0.0",
4-
"description": "",
54
"main": "index.js",
65
"scripts": {
7-
"tailwind": "tailwind -i ../static/css/tailwind.css -o ../static/css/style.css --watch",
6+
"tailwind": "tailwind build -i ../static/css/tailwind.css -o ../static/css/style.css --watch",
87
"minify": "cleancss ../static/css/style.css -o ../static/css/style.min.css"
98
},
109
"keywords": [],
@@ -15,5 +14,6 @@
1514
},
1615
"dependencies": {
1716
"clean-css-cli": "^5.6.3"
18-
}
17+
},
18+
"description": ""
1919
}

node/tailwind.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module.exports = {
33
content: [
44
'../templates/**/*.html',
55
'../**/templates/**/*.html',
6-
'../**/forms.py'
76
],
87
theme: {
98
extend: {},

requirements.txt

1.54 KB
Binary file not shown.
-17 Bytes
Binary file not shown.

trendy/settings.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
env.read_env()
77

88
ENVIROMENT = env('ENVIROMENT', default='production')
9-
# from environ import Env
10-
# env = Env()
11-
# env.read_env()
12-
# ENVIROMENT = env('ENVIROMENT', default='production')
13-
9+
1410
# Build paths inside the project like this: BASE_DIR / 'subdir'.
1511
BASE_DIR = Path(__file__).resolve().parent.parent
1612

@@ -28,7 +24,7 @@
2824
else:
2925
DEBUG = False
3026

31-
ALLOWED_HOSTS = ['*']
27+
ALLOWED_HOSTS = []
3228

3329

3430
# Application definition
@@ -179,4 +175,4 @@
179175

180176
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
181177

182-
ACCOUNT_USERNAME_BLACKLIST = ['admin', 'profile', 'accounts', 'post', 'encrypt']
178+
ACCOUNT_USERNAME_BLACKLIST = ['admin', 'profile', 'post', 'encrypt']

0 commit comments

Comments
 (0)