Post doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS

2016-05-24 Thread meInvent bbird
Performing system checks... System check identified no issues (0 silenced). You have unapplied migrations; your app may not work properly until they are applied. Run 'python manage.py migrate' to apply them. May 24, 2016 - 05:07:14 Django version 1.8.7, using settings 'site1.settings' Starting

Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-24 Thread meInvent bbird
would like to press save button then call post_detail and append to csv, it return error Save Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] urls.py from django.conf.urls import include, url from . import views urlpattern

Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-24 Thread meInvent bbird
Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] i follow django girl web , expect to go to /reg to fill a form and press save button then go to web /reg/ it has error INSTALLED_APPS = ( 'django.contrib.admin', 'django.co

Re: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-25 Thread meInvent bbird
ic coues wrote: > > It should work better this way: > onClick="window.location.href='{% url 'post_detail' pk=post.pk > %}'">Save > > the url template tag take a route name, not an url as it first argument. > > 2016-05-24 10:19 GMT+02:00 meInve

Re: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-25 Thread meInvent bbird
uot;>Save > > the url template tag take a route name, not an url as it first argument. > > 2016-05-24 10:19 GMT+02:00 meInvent bbird >: > > Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword > arguments > > '{}' not found.

Re: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-26 Thread meInvent bbird
u done the django tutorial ? It help a lot when starting with > django. > > Your problem come from site1/urls.py . `include(admin.site.urls)` work > because you import admin. `include(site1.reg.urls)` cannot work > because site1 is not defined. > > Also, the

Re: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-26 Thread meInvent bbird
he django tutorial ? It help a lot when starting with > django. > > Your problem come from site1/urls.py . `include(admin.site.urls)` work > because you import admin. `include(site1.reg.urls)` cannot work > because site1 is not defined. > > Also, the djangogirls tutorial [

Re: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-26 Thread meInvent bbird
/en/django_forms/ > > 2016-05-26 3:46 GMT+02:00 meInvent bbird >: > > > > https://drive.google.com/file/d/0Bxs_ao6uuBDUQm5jOEdCOFowa0U/view?usp=sharing > > > > On Tuesday, May 24, 2016 at 9:07:25 PM UTC+8, ludovic coues wrote: > >> > >> It sh

Re: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-26 Thread meInvent bbird
lot when starting with > django. > > Your problem come from site1/urls.py . `include(admin.site.urls)` work > because you import admin. `include(site1.reg.urls)` cannot work > because site1 is not defined. > > Also, the djangogirls tutorial [1] have a great chapter about fo

with django, how to write a grdview or table to show information and add a button or link in each row for approval?

2016-05-26 Thread meInvent bbird
with django, how to write a grdview or table to show information and add a button or link in each row for approval? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: with django, how to write a grdview or table to show information and add a button or link in each row for approval?

2016-05-27 Thread meInvent bbird
i write with this method, but nothing is displayed, only blank page, however there are data shown in console where is wrong? {% block content %} {% for post in posts %} post.project post.company {% endfor %}

Re: with django, how to write a grdview or table to show information and add a button or link in each row for approval?

2016-05-27 Thread meInvent bbird
after changed to return render(posts, 'approval.html') got error 'list' object has no attribute 'META' def post_detail(request): posts = [] with open('/home/martin/Downloads/site1/site1/reg/newusers.csv', 'rb') as csvfile: reader = csv.DictReader(csvfile) for row in reader:

Re: with django, how to write a grdview or table to show information and add a button or link in each row for approval?

2016-05-27 Thread meInvent bbird
currently the error is dictionary update sequence element #0 has length 5; 2 is required def post_detail(request): posts = [] with open('/home/martin/Downloads/site1/site1/reg/newusers.csv', 'rb') as csvfile: reader = csv.DictReader(csvfile) for row in reader: if len(ro

how to upload file with pjango

2016-05-27 Thread meInvent bbird
how to upload file with pjango ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

why blank page when load a list or dictionary into web to display a list

2016-05-27 Thread meInvent bbird
https://drive.google.com/file/d/0Bxs_ao6uuBDUYkRIdlZfbEFLV3c/view?usp=sharing http://x.x.x.x/reg/approval.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to d

Re: why blank page when load a list or dictionary into web to display a list

2016-05-31 Thread meInvent bbird
post.project }} > > > {{ post.company }} > > > {{ post.name }} > > > {{ post.businessType }} > > > {{ post.userType }} > > > {

Re: how to upload file with pjango

2016-05-31 Thread meInvent bbird
:50:29 PM UTC+8, Wyrven no L2Radamanthys wrote: > > Hello, > > add enctype="multipart/form-data" param in you html form > > see more info > > https://docs.djangoproject.com/es/1.9/topics/http/file-uploads/ > > > > 2016-05-27 6:45 GMT-03:00 meInvent b

how to add a dynamic number of check field and save?

2016-05-31 Thread meInvent bbird
https://drive.google.com/file/d/0Bxs_ao6uuBDUeW9BQzA1RTlHZEE/view?usp=sharing the number of rows in http://x.x.x.x/reg/approval.html depend on data in csv, if checked a few check box and save, how to add check box field and get the value of checkboxes? -- You received this message because yo

Re: why blank page when load a list or dictionary into web to display a list

2016-05-31 Thread meInvent bbird
{{ post.name }} > > > {{ post.businessType }} > > > {{ post.userType }} > > > {% endfor %} > > {% endblock %} > > > > > On Friday, 27 May 2016 15:27:3

Re: how to upload file with pjango

2016-06-01 Thread meInvent bbird
gt; MAX_FILE_SIZE = forms.CharField(widget=forms.HiddenInput(), initial = > 1) > > > and in template upload.html you tried this? > > > Title {{ form.title }} > Choose a file to upload: {{ form.file2 }} > {{ form.MAX_FILE_SIZE }} > >

how to forbidden mouse click and keyboard typing when loading page after press submit button in django web?

2016-06-09 Thread meInvent bbird
how to forbidden mouse click and keyboard typing when loading page after press submit button in django web? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to djan

which regex are for filtering malicious input in django?

2016-06-09 Thread meInvent bbird
which regex are for filtering malicious input in django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to th

how to forbidden refresh page in django during loading after press submit button in form and only allow close window

2016-06-09 Thread meInvent bbird
how to forbidden refresh page in django during loading after press submit button in form and only allow close window -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: how to forbidden mouse click and keyboard typing when loading page after press submit button in django web?

2016-06-10 Thread meInvent bbird
django question. Let's imagine. User has pressed submit. > Browser is forming request and data is passing to web app. Has web aapp > informed about user typing? Of course no. Simple redirect makes forgotting > filled form. > 10 черв. 2016 04:36 "meInvent bbird" > >