Skip to content

Commit

Permalink
Fix code formatting for wsgi script
Browse files Browse the repository at this point in the history
  • Loading branch information
urbaniak committed Feb 28, 2016
1 parent c594317 commit f814558
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pl/deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,20 +263,20 @@ Kliknij na link "WSGI configuration file" (w sekcji "Code" w górnej części st

Skasuj całą zawartość pliku i zastąp ją następującym tekstem:

python
import os
import sys
```python
import os
import sys

path = '/home/<your-username>/my-first-blog' # use your own username here
if path not in sys.path:
sys.path.append(path)
path = '/home/<your-username>/my-first-blog' # use your own username here
if path not in sys.path:
sys.path.append(path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'

from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
application = DjangoWhiteNoise(get_wsgi_application())
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'

from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
application = DjangoWhiteNoise(get_wsgi_application())
```

> **Uwaga** Nie zapomnij zastąpić wszystkich wystąpień `<your-username>` swoją nazwą użytkownika.
Expand Down

0 comments on commit f814558

Please sign in to comment.