File tree Expand file tree Collapse file tree 1 file changed +5
-25
lines changed Expand file tree Collapse file tree 1 file changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,7 @@ pip3 install -r requirements.txt
21
21
22
22
4 (Optional) Change database in settings.py file
23
23
24
- 5 Create database tables
25
-
26
- ```
27
- python3 manage.py makemigrations core
28
- python3 manage.py migrate
29
- ```
24
+ 5 (Optional) Configure alembic
30
25
31
26
6 Run your application
32
27
@@ -148,18 +143,9 @@ proxy_py@server:~/proxy_py$ vim proxy_py/settings.py
148
143
```
149
144
150
145
```
151
- from ._settings import *
152
-
153
- DATABASES = {
154
- 'default': {
155
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
156
- 'NAME': 'DB_NAME',
157
- 'USER': 'USERNAME',
158
- 'PASSWORD': 'PASSWORD',
159
- 'HOST': '127.0.0.1',
160
- 'PORT': '5432',
161
- },
162
- }
146
+ DATABASE_CONNECTION_ARGS = (
147
+ 'postgresql://USERNAME:PASSWORD@localhost/DB_NAME',
148
+ )
163
149
```
164
150
165
151
5 Copy supervisor config example and change it for your case
@@ -190,10 +176,4 @@ root@server:~$ /etc/init.d/nginx restart
190
176
191
177
## What is it depend on?
192
178
193
- ```
194
- lxml
195
- pysocks
196
- django
197
- aiohttp
198
- aiosocks
199
- ```
179
+ See requirements.txt
You can’t perform that action at this time.
0 commit comments