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 = models.CharField(max_l
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
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 slow down. And I apologise for the
delay in responding. I am not certain why the number is so high in my case.
I will take a closer look at it and share what I find out later
Im writing to a WAV file using Python script and trying to play it using
HTML tag from Static dir...
The Process:
Parameters from website are written to .txt in views --> Python file exc.
with subprocess.call and .txt parameters read --> WAV (sound.wav) written
to with Python and saved in Sta
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
I am consistently getting an error:
NameError: name 'create_question' is not defin
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
I am consistently getting an error:
NameError: name 'create_question' is not defined.
The first section of tests.py to t
First, you need a model to store the data in the database.
Then, you can use a CreateView as explained at [1].
You should have something like that at the end.
models.py:
from django.db import models
class User(models.Model):
name = models.CharField(max_length=128)
newsletter = models.Bool
Have you checked you didn't put a space between 'account: and
resetPasswordSendMail' ?
2016-07-10 6:49 GMT+02:00 Ajo Thomas :
> I am getting the error mentioned in the heading. The reverse url is
> working perfectly everywhere in the html code except in the form action
> part. The code works per
What are you trying to do ?
Where do you want to import your js code ? Why do you want to do it ?
What are you trying to achieve ?
2016-07-10 15:06 GMT+02:00 Seti Volkylany :
> After googling in the Web, I don`t found clean solution for it.
>
> --
> You received this message because you are subscr
Hello,
I want to create a form to apply in, this form will contain fields for
name, surname, e-mail, text area and also i want it to contain
checkbox-es. Data that will be inserted in those areas to be saved in db.
How can i come up with this?
--
You received this message because you are s
I am trying to implement django-allauth on local server. I need help to
figure out how to set callback url for FaceBook Auth.
Regards,
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving em
I am getting the error mentioned in the heading. The reverse url is working
perfectly everywhere in the html code except in the form action part. The
code works perfectly when I do not use namespaces in my project which right
now has only one app. Example: {% url 'view_name' %} instead of {% url
After googling in the Web, I don`t found clean solution for it.
--
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 pos
*admin
воскресенье, 10 июля 2016 г., 12:49:37 UTC+3 пользователь Megido _ написал:
>
> i have groups:
>
> pk,name
> 1 - admin
> 2 - user
> 3 - moderator
>
> when i dump initial data of app "auth" i got this initial groups data:
>
> pk,name
> 1 - user
> 2 - admin
> 3 - moderator
>
> but relation
i have groups:
pk,name
1 - admin
2 - user
3 - moderator
when i dump initial data of app "auth" i got this initial groups data:
pk,name
1 - user
2 - admin
3 - moderator
but relations user-> group stay same, all users now moderators, and moders
now users O.o
wtf?
--
You received this messa
15 matches
Mail list logo