Re: about tutorial "app reusable section" issue

2017-05-01 Thread 'Abraham Varricatt' via Django users
Hello Xuanbei, You are most likely getting that erro because you still have 'polls' mentioned inside INSTALLED_APPS within your settings.py file. On a different note, can you link to the tutorial you are following? I don't recall the official django tutorial instructing to install polls via

Re: Make a separate table for a model without additional fields

2017-05-01 Thread Vijay Khemlani
Why do you need an additional model for automatic payments? I don't know the whole project, but I would just add a field to the Payment class On 5/1/17, Victor Porton wrote: > I store into the DB payments received through PayPal. Every payment is > either manual or automatic

Make a separate table for a model without additional fields

2017-05-01 Thread Victor Porton
I store into the DB payments received through PayPal. Every payment is either manual or automatic (automatic payments are done for the user by PayPal automatically, based on user's permission to pay in the future). I wish to distinguish manual and automatic payments in the DB. But in the

Re: Django feedback

2017-05-01 Thread Mark Phillips
Can you successfully send an email from the command line on your server? You need to be able to do that in order to send email from django. Mark On Mon, May 1, 2017 at 1:52 PM, Melvyn Sopacua wrote: > On Monday 01 May 2017 13:47:10 goskoomer tarasenko wrote: > > > The

Re: Django Channels App Design

2017-05-01 Thread Ethan Knapp
Thanks Andrew! I'm glad I'm not the only guy out there with a similar problem. I'll have to look into the feasibility of the database approach, but I'm not sure if it will be efficient enough - I have some data points that require faster resolution than every second. On Friday, April 28, 2017

Re: Django feedback

2017-05-01 Thread Melvyn Sopacua
On Monday 01 May 2017 13:47:10 goskoomer tarasenko wrote: > The third day I suffer with the form of feedback Did you configure the settings related to EMAIL_[1]? -- Melvyn Sopacua [1] https://docs.djangoproject.com/en/1.11/ref/settings/#email-backend -- You received this message

Django feedback

2017-05-01 Thread goskoomer tarasenko
The third day I suffer with the form of feedback, here is the link to the code, tell me where the error is. Although in pycharm it shows that the sending goes to the post office and the mail does not receive a message from django.shortcuts import render from django import forms from django.http

port 80 **** Hit EOF while fetching headers

2017-05-01 Thread zhenwuhe0611
Hi, Experts: We built our system using apache + django and we have lots of clients sending updates to our backend server at around 1min interval. But we do have 9000 around devices. From time to time, we are seeing port 80 Hit EOF while fetching headers in apache log or 500 error, could

Django Sass verwenden

2017-05-01 Thread Jonas Niedermair
Ich habe vor einiger Zeit begonnen Django zu lernen. Bisher habe ich immer direkt CSS verwendet. Ich möchte jedoch Sass verwenden, weiß jedoch nicht wo ich die Sass Dateien in meinem Django Projekt speichern soll und wie ich die Sass Datein am besten in CSS konvertieren kann. Ich habe bereits

Re: Error was: cannot import name 'GDALRaster in Window 8.1

2017-05-01 Thread Tim Graham
It looks like GDAL isn't installed on your system. Looking at https://docs.djangoproject.com/en/stable/ref/contrib/gis/install/#spatial-database, I believe it's a required dependency -- perhaps we should try to improve the error message. On Sunday, April 30, 2017 at 10:20:01 AM UTC-4,

Different models in child and Parent Templates

2017-05-01 Thread chuck . horowitz
Please be more specific about your issue. How are you rendering your templates? Can you paste into a response your views.py and urls.py for the relevant apps? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Django package boilerplate.

2017-05-01 Thread Andréas Kühne
If you opensource it and host the code on github - you can easily setup travis ci for free. https://docs.travis-ci.com/user/languages/python/ Med vänliga hälsningar, Andréas 2017-05-01 17:18 GMT+02:00 Frederik Creemers : > I've got a few utilities in my app that I

Re: NoReverseMatch

2017-05-01 Thread Melvyn Sopacua
On Friday 28 April 2017 14:08:05 Will Holmes wrote: > django.urls.exceptions.NoReverseMatch: Reverse for 'delete_event' with > arguments '('',)' This tells you that id is not handed to the template that renders the view containing this form. Otherwise, arguments would be '('123456',)'. --

Re: NoReverseMatch

2017-05-01 Thread Melvyn Sopacua
On Friday 28 April 2017 16:31:57 shahab emami wrote: > your url must be like this: > > url(r'^events/((?P\d+))/delete/$', views.delete_event, name= > 'delete_event'), No, it MUST not. That just changes the problem from args to kwargs. -- Melvyn Sopacua -- You received this message because

Django package boilerplate.

2017-05-01 Thread Frederik Creemers
I've got a few utilities in my app that I think could be useful to share as open source projects, but I'm putting it off because I'd have to set up CI for multiple Python/Django versions and other boilerplate. Is there a boilerplate repository for sometHing like this out there that I can ust

Split an existing app up into multiple apps.

2017-05-01 Thread Frederik Creemers
Hi. Is there a guide on how to split up an existing Django app into multiple apps? When I created my project, I foolishly created an app called "common". Generic names like that attract all sorts of functionality, and now I think it'd be a good idea to split it up. -- You received this

Re: Django Tutorial | sqlmigrate command ending in error

2017-05-01 Thread Nikhil Reddy
Ok..Sorry about that. I haven't done any modifications to polls/migrations/0001_initial.py or settings files that got created by default. I've attached both files. Please review. Thanks, NJ On Sunday, 30 April 2017 19:30:28 UTC+5:30, Daniel Roseman wrote: > > You haven't given nearly enough

Re: Django Tutorial | sqlmigrate command ending in error

2017-05-01 Thread Dilraj sachdev
By this limited information, just guessing could be a problem with path of sqlite db file D On Friday, 21 April 2017 14:10:43 UTC+1, Nikhil Reddy wrote: > > Hi, > > I am going through this tutorial > . When I execute > the command:

Different models in child and Parent Templates

2017-05-01 Thread jithu s jacob
I am using parent template as base which has a side nav bar. the child template keeps changing with clicking of buttons. My child template changes correctly with call to different views through the URLs. Now I want to add some data from model i the parent template irrespective of the