Re: Error in testing script

2016-07-11 Thread Gary Roach
On 07/10/2016 11:19 PM, Michal Petrucha wrote: On Sun, Jul 10, 2016 at 02:25:40PM -0700, Gary Roach wrote: On 07/10/2016 01:57 PM, Gary Roach wrote: Hi all; OS Debian Linux KDE desktop Django 1.9 Python 3.5 Working with tutorial https://docs.djangoproject.com/en/1.9/intro/tutorial05/ Writing

Re: static files suspicious operation, os error, and list of paths

2016-07-11 Thread ludovic coues
Do you define BASE_DIR and STATIC_URL in your settings.py file ? 2016-07-11 23:56 GMT+02:00 Malik Rumi : > Well, I'm stuck again. I am still trying to get my dev site to work with > this new bootstrap theme. Debug toolbar is telling me over 1,000 staticfiles > have been

static files suspicious operation, os error, and list of paths

2016-07-11 Thread Malik Rumi
Well, I'm stuck again. I am still trying to get my dev site to work with this new bootstrap theme. Debug toolbar is telling me over 1,000 staticfiles have been found, but none were used. So if they are found, why aren't they used? I ran findstatic and got this traceback:

Re: static files suspicious operation, os error, and list of paths

2016-07-11 Thread Malik Rumi
yes. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) STATIC_URL = '/static/' On Monday, July 11, 2016 at 2:56:06 PM UTC-7, Malik Rumi wrote: > > Well, I'm stuck again. I am still trying to get my dev site to work with > this new bootstrap theme. Debug toolbar is

Re: Reverse for 'resetPasswordSendMail' with arguments '()' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'$resetPasswordSendMail/$']

2016-07-11 Thread James Schneider
> > urls.py > > from django.conf.urls import url, include > from django.contrib import admin > from account import views > from django.core.urlresolvers import reverse > > app_name = 'account' > > urlpatterns = [ > #url(r'^admin/', admin.site.urls), > url(r'^$', views.login, name='login'

Re: Error in testing script

2016-07-11 Thread Michal Petrucha
On Sun, Jul 10, 2016 at 02:25:40PM -0700, Gary Roach wrote: > On 07/10/2016 01:57 PM, Gary Roach wrote: > >Hi all; > > > >OS Debian Linux KDE desktop > >Django 1.9 > >Python 3.5 > > > >Working with tutorial > >https://docs.djangoproject.com/en/1.9/intro/tutorial05/ > >Writing polls/tests.py script

django data insertion into database

2016-07-11 Thread Ikram Ulhaq
hi everyone! i am new in django web development.i want to insert data into my database using following code but i got error like this. model = Incident NameError: name 'Incident' is not defined please help. my code is below class Incident(models.Model): subject =

Re: Django - File or Image Delete

2016-07-11 Thread Paul
thanks On Monday, July 11, 2016 at 11:16:27 AM UTC+3, Mstislav Kazakov wrote: > > Try to override `delete` method in your model. You should do something > like this: > > class Example(models.Model): > f = models.FileField(null=True, blank =True) > > > def delete(self,*args,**kwargs):

Django Class-based Views with Multiple Forms

2016-07-11 Thread Paul
By default Django’s class-based views support just a single form per view. I need more forms per view because I want to combine a ForeignKey relations with various ModelForm instances and also to appear in the FormModel. In Django documentation and other tutorials I found formsets, but in the

Re: Django Class-based Views with Multiple Forms

2016-07-11 Thread Edgar Gabaldi
Hi paul. There is a package called django-extra-views that solve exactly this problem. See CreateViewWithInlines (or something like that). Em 7h40 Seg, 11/07/2016, Paul escreveu: > By default Django’s class-based views support just a single form per view. > > I need

Re: dynamic WAV file??

2016-07-11 Thread ludovic coues
My go to solution for that king of problem is to append a query argument. If the browser have a cached version of sound.wav?v=1 but you serve sound.wav?v=2, the browser should grab the last version, even if the file is still named sound.wav. For your second point, you could use BytesIO, from the

Re: Django - File or Image Delete

2016-07-11 Thread Mstislav Kazakov
Try to override `delete` method in your model. You should do something like this: class Example(models.Model): f = models.FileField(null=True, blank =True) def delete(self,*args,**kwargs): if os.path.isfile(self.f.path): os.remove(self.f.path) super(Example,

Re: django data insertion into database

2016-07-11 Thread Derek
Looks like the lines in your code, from # forms onwards need to be outdented (so the "class" statements are at matching levels). On Monday, 11 July 2016 08:34:44 UTC+2, Ikram Ulhaq wrote: > > hi everyone! > i am new in django web development.i want to insert data into my database > using

inlineformset_factory Tutorial

2016-07-11 Thread Paul
I'm searching for a good tutrial regarding "inlineformset_factory". the information about it od Django site is very scarce. -- 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

Re: Slow Django dev server reload

2016-07-11 Thread ludovic coues
Any chance the big time difference come from the difference between SSD and mechanical drive ? 2016-07-11 7:00 GMT+02:00 Krishna Bharadwaj : > Fred, > > That's very good to know. At least it tells me that the number of imports > could be one of the main reasons for the