netstat -tulpanw
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^all/$', views.index),
]
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = (
url(r'^admin/', admin.site.urls),
url(r'^app1/', include('app1.urls')),
)
def dob_years():
year_min = 1950
year_max = 2006
YEARS_BIRTHS = ()
for year in range(year_min, year_max):
new_tuple = (str(year), str(year)),
YEARS_BIRTHS += new_tuple
return YEARS_BIRTHS
class PersonForm(models.Model):
person_dob_year = models.CharField(
"Год рождения",
default='1980',
max_length=4,
choices=dob_years(),
blank=True,
null=True,
)
Есть клиенты и для Linux и для Windows