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: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-26 Thread meInvent bbird
i succeed to save to csv, i use post instead of request but it is quite odd, it do not have request in query string in link writer.writerow({'name': post.UserName, 'email address': post.Email, 'project': post.ProjectName, 'initial password': post.InitialPassword,'userType': post.UserType, 'co

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

2016-05-26 Thread meInvent bbird
so far, the link do not have querystring, the error is WSGIRequest' object has no attribute 'Email' On Thursday, May 26, 2016 at 10:24:44 PM UTC+8, ludovic coues wrote: > > Have you done the django tutorial ? It help a lot when starting with > django. > > Your problem come from site1/urls.py .

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

2016-05-26 Thread meInvent bbird
i succeed to make it trigger something when press button after read tutorial again however got error, WSGIRequest' object has no attribute 'Email' def post_new(request): #post = get_object_or_404(Post) #form = PostForm() #return render_to_response(request, 'registration.html'

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

2016-05-26 Thread meInvent bbird
this works, because i set ROOT_URLCONF since it work, it can go to registration.html by reading urls.py in directory reg INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

Django Models

2016-05-26 Thread Ken Edem
I am new to Django Python and I need bit of help Can someone please help me with how I should structure my models, since this is a very important part of the project I am trying to develop, I had been teaching myself and not yet good at this stuff. I want to develop a web project for match

Re: Questions about Deploying django for production using apache and mod_wsgi.

2016-05-26 Thread Gergely Polonkai
On May 26, 2016 20:12, "Bruce Whealton" wrote: > > Hello all, > I have a few questions of which I am not finding answers. > 1) If I export my development db (Postgresql) and then import it into production database, > won't I be pulling in a very weak password that I used for development? I

Questions about Deploying django for production using apache and mod_wsgi.

2016-05-26 Thread Bruce Whealton
Hello all, I have a few questions of which I am not finding answers. 1) If I export my development db (Postgresql) and then import it into production database, won't I be pulling in a very weak password that I used for development? I guess I can just change that. 2) Should I export all t

Re: django.contrib apps migrations

2016-05-26 Thread McKinley
I managed to use fixtures to suit my needs for maintaining concurrency across admin app with collaborators. On Sunday, May 15, 2016 at 2:42:00 AM UTC-7, Michal Petrucha wrote: > > On Fri, May 13, 2016 at 01:01:22PM -0700, McKinley wrote: > > Hi Michal, > > > > I know the django.contrib migrati

Re: How to implement a ManyToManyField with a View

2016-05-26 Thread Simon Charette
Hi Bruce, I think you want to call get_object_or_404 with the Contact model in your contact_detail() view. Cheers, Simon Le jeudi 26 mai 2016 13:43:00 UTC-4, Bruce Whealton a écrit : > > Hello all, > I started a similar thread but couldn't find it. > I was creating a Personal Information Ma

How to implement a ManyToManyField with a View

2016-05-26 Thread Bruce Whealton
Hello all, I started a similar thread but couldn't find it. I was creating a Personal Information Management Project, with Project name mypim. My first app was a contacts app. This has two Class based Models in the models.py in the contacts directory. My first view works fine, where I disp

Re: I am not able to run the following code

2016-05-26 Thread Gergely Polonkai
I don’t see any error here; what is the error message you see? Gergely Polonkai [image: https://]about.me/gergely.polonkai 2016-05-26 10:16 GMT+02:00 Madhusudhana H V : > I

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

2016-05-26 Thread ludovic coues
Have you 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 djangogirls tutorial [1] have a great chapter

Re: Reportlab no module named pdfgen

2016-05-26 Thread Fred Stluka
David, It works fine for me.  Must be something about your environment. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Op

Re: Django Live video streaming from ffserver

2016-05-26 Thread Stefano Probst
Hi, eventual something like X-Accel-Redirect can help to do this without a performance penalty. See https://wellfire.co/learn/nginx-django-x-accel-redirects/ Serving protected upstream services Am Donnerstag, 26. Mai 2016 13:44:02 UTC+2 schrieb Jahan Balasubramaniam: > > Hi > > I have setup a

Re: How to select undetermined field(s) in django model?

2016-05-26 Thread Jani Tiainen
You need to construct a dict with fieldname value pairs, like: search = {'field1': value1, 'field2', value2} And then you can do standard python kw-expansion: MyModel.objects.filter(**search) Though I suspect you want to do that for arbitrary fields so you should filter out all bad stuff bef

Re: How to select undetermined field(s) in django model?

2016-05-26 Thread Ketan Bhatt
It just means the "field_name" you are using in the filter query doesn't exist. Multiple reasons: 1. The model doesn't really have that field in its definition. 2. You forgot migrating your database. 3. The field name being sent from your form is not right. To get a clearer picture, try the same

Re: Django Beginner

2016-05-26 Thread Ketan Bhatt
The official tutorial is difficult for a beginner, it was for me. I would suggest you start with Django girls, or "Tango with Django" On Thu, May 26, 2016, 5:52 PM Jani Tiainen wrote: > And after that official tutorial there exists Django Girls and Django > Taskbuster which are much more verbos

How to select undetermined field(s) in django model?

2016-05-26 Thread Jianshu Hu
To all, I am new to django, and learning to establish a site. Here is my problem: I have got a databse and a table in mysql, and am using django to read the data from it. I got a pair of values [FIELD_NAME,VALUE] from the GET method of a html page. When the values passed to the searchin

Re: Django Beginner

2016-05-26 Thread Jani Tiainen
And after that official tutorial there exists Django Girls and Django Taskbuster which are much more verbose tutorials. On 26.05.2016 14:45, Matthias Müller wrote: h, what about making the tutorial ? https://docs.djangoproject.com/en/1.9/intro/tutorial01/ enjoy it ! 2016-05-26 9:16 GMT

Re: Django Live video streaming from ffserver

2016-05-26 Thread Javier Rivera
You can try to use a proxy. Maybe not the most performance-wise idea in the world, but it could work. You can try this: http://django-http-proxy.readthedocs.io/en/stable/ Best regards, Javier. On 26/05/16 12:38, Jahan Balasubramaniam wrote: Hi I have setup a ffserver which provides live v

Re: Django Beginner

2016-05-26 Thread Matthias Müller
h, what about making the tutorial ? https://docs.djangoproject.com/en/1.9/intro/tutorial01/ enjoy it ! 2016-05-26 9:16 GMT+02:00 Atchuta Saikumar : > Hello ... > I want to learn Django.I have some basic knowledge in python but don't > know oop concepts in python.what to do now? > > -- > Y

Django Live video streaming from ffserver

2016-05-26 Thread Jahan Balasubramaniam
Hi I have setup a ffserver which provides live video stream in the local network over http. What I want is django app which enables me to do some authentication stuff and stream from local network to outside world. I have more than decent amount of knowledge in Django and have done dozen proj

Django Beginner

2016-05-26 Thread Atchuta Saikumar
Hello ... I want to learn Django.I have some basic knowledge in python but don't know oop concepts in python.what to do now? -- 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

I am not able to run the following code

2016-05-26 Thread Madhusudhana H V
I am trying to execute the following code. But I am getting error at step 2, namely ">>> t = template.Template('My name is {{ name }}.')" Kindly help me out of this. >>> from django import template>>> t = template.Template('My name is {{ name >>> }}.')>>> c = template.Context({'name': 'Adrian'

Django ~

2016-05-26 Thread 鈴木一朗
Newborn ! very exiting haha -- 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 djang