Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django2-project-template
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django2-project-template
Commits
7525a217
Unverified
Kaydet (Commit)
7525a217
authored
May 02, 2018
tarafından
Uğur Özyılmazel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix: Install script and README for Django 2.0.5
üst
42f9324f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
+22
-11
README.md
README.md
+14
-8
install.sh
install.sh
+8
-3
No files found.
README.md
Dosyayı görüntüle @
7525a217
![
Django
](
https://img.shields.io/badge/django-2.0.
1
-green.svg
)
![
Version
](
https://img.shields.io/badge/version-0.
1.1
-yellow.svg
)
![
Django
](
https://img.shields.io/badge/django-2.0.
5
-green.svg
)
![
Version
](
https://img.shields.io/badge/version-0.
2.0
-yellow.svg
)
# Django Project Starter Template
...
...
@@ -15,6 +15,8 @@ Django releases as much as I can!
## Installation
Please use
`virtualenvwrapper`
and create your environment and activate it.
With Python 3.3+, you don’t need to install
`virtualenv`
. You can create your
environment via;
`python -m venv /path/to/your/environment`
```
bash
# example
...
...
@@ -26,7 +28,7 @@ $ workon my_projects_env
You need to declare
**2 environment**
variables. I always put my project
specific environment variables under
`virtualenvwrapper`
’s
`postactivate`
file. Open your
`~/.virtualenvs/my_projects_env/bin/postactivate`
and add
these lines:
these lines
(
*or set it manually*
)
:
```
bash
export
DJANGO_ENV
=
"development"
...
...
@@ -36,10 +38,10 @@ export DJANGO_SECRET="YOUR-SECRET-HERE" # will fix it in a second.
then;
```
bash
# for django 2.0.
1
$
curl
-L
https://github.com/vigo/django2-project-template/archive/django-2.0.
1
.zip
>
template.zip
# for django 2.0.
5
$
curl
-L
https://github.com/vigo/django2-project-template/archive/django-2.0.
5
.zip
>
template.zip
$
unzip template.zip
$
mv
django2-project-template-django-2.0.
1
my_project
&&
rm
template.zip
$
mv
django2-project-template-django-2.0.
5
my_project
&&
rm
template.zip
$
cd
my_project/
$
cp
config/settings/development.example.py config/settings/development.py
# development.py is not under revison control
...
...
@@ -515,8 +517,8 @@ need to create a copy of it! (*if you follow along from the beginning, you’ve
All the base/common required Python packages/modules are defined under `requirements/base.pip`
:
```
python
Django==2.0.
1
Pillow==5.
0
.0
Django==2.0.
5
Pillow==5.
1
.0
```
### `development.py`
...
...
@@ -1433,6 +1435,10 @@ This project is licensed under MIT
## Change Log
**2018-05-02**
-
Django 2.0.5 and related changes.
**2018-01-09**
-
Django 2.0.1 and related changes.
...
...
install.sh
Dosyayı görüntüle @
7525a217
...
...
@@ -6,15 +6,18 @@
set
-e
set
-o
pipefail
AVAILABLE_OPTIONS
=(
"Django 2.0.1"
"Cancel and quit"
)
AVAILABLE_OPTIONS
=(
"Django 2.0.5"
"Cancel and quit"
)
echo
"Django Project Template Installer"
PS3
=
"Select option:"
select
i
in
"
${
AVAILABLE_OPTIONS
[@]
}
"
do
case
$i
in
"Django 2.0.
1
"
)
PACKAGE
=
"django-2.0.
1
"
"Django 2.0.
5
"
)
PACKAGE
=
"django-2.0.
5
"
break
;;
"Cancel and quit"
)
...
...
@@ -44,5 +47,7 @@ echo
echo
echo
"Installation completed..."
echo
"Now, create your virtual environment and run:"
echo
echo
"cd
${
PROJECT_NAME
}
/"
echo
"pip install -r requirements/development.pip"
echo
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment