No problem. Glad you got it sorted.
On Tue., 4 Jun. 2019, 8:16 am Ankhi Roy, wrote:
> Hey,
>
> Nevermind I have solved the problem.
> I was in an impression that I need to create a seperate database
> equivalent to django model form. Then realised that Django automatically
> creates a database
With your form.save() call try passing commit=True so it looks like
form.save(commit=True)
On Tue., 4 Jun. 2019, 1:39 am Ankhi Roy, wrote:
> Hi,
>
> I am using Django admin - 2.2.1 and Postgresql as my database. So my
> problem is I have saved the user entered data in form.py on "POST" Request
Hi,
As said by ankhi, change to pgsql in settings before that use the django
fixtures feature to take a backup of the data etc. try in test env only as
this has breaking potential.
Regards,
Kiran Capoor
On Tue, 4 Jun 2019 at 01:33, Ankhi Roy wrote:
> Hey Victor,
>
> Do you mean to use
Hey,
Nevermind I have solved the problem.
I was in an impression that I need to create a seperate database equivalent
to django model form. Then realised that Django automatically creates a
database table like databasename_modelclassname and have all the columns as
per Django model form.
Anyway
Hey Victor,
Do you mean to use postgresql instead of mysql, if so please change
database settings in settings.py. However, I am not sure how will you
migrate your existing mysql tables and contents to postgresql. Just a
workaround you can recreate tables in postgresql and re add the data. There
How to migrate a production database MySQL -> PostgreSQL?
(MySQL has several bugs, I want to try something other on my production
server.)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving
Hi,
I'm a newbie and I want to change the Django SelectDateWidget to
SelectMonthDayWidget because I can't use the year in my application. I had
been getting another error (which I don't recall right now) on the
statement that started 'html['month']' so, I decided to convert it to
command line
write the post request api for the drown fields to that model
On Mon, 3 Jun 2019 at 23:14, sachinbg sachin
wrote:
> make category like that and relate the category model as foreignkey for
> model which one u neaded
>
> On Mon, 3 Jun 2019 at 23:13, sachinbg sachin
> wrote:
>
>> make ur
make category like that and relate the category model as foreignkey for
model which one u neaded
On Mon, 3 Jun 2019 at 23:13, sachinbg sachin
wrote:
> make ur category model like this
>
> On Mon, 3 Jun 2019 at 23:10, sachinbg sachin
> wrote:
>
>>
>>
>> On Mon, Jun 3, 2019, 4:32 PM Aayush
On Mon, Jun 3, 2019, 4:32 PM Aayush Bhattarai Hi, I am using Django==2.2.1 *as Class-Based View. I wanted to add a
> category in a drop down and when anyone clicks it should be gone to
> category.*
> *What will be the best method for doing this? Follow the step of DRY.
> Thanks for your Time.*
>
Hi,
I am using Django admin - 2.2.1 and Postgresql as my database. So my
problem is I have saved the user entered data in form.py on "POST" Request
but it isn't saving in the postgresql database.
Model.py -
class modelForm(models.Model):
CHOICES = [('Y', 'Yes'),
('N',
Oh, i missed that link, thanks.
On Mon, Jun 3, 2019 at 9:45 PM אורי wrote:
> wanbao Did you read
> https://www.djangoproject.com/weblog/2019/jun/03/security-releases/ ?
> אורי
> u...@speedy.net
>
>
> On Mon, Jun 3, 2019 at 4:42 PM wanbao jin wrote:
>
>> What were those security issues?
wanbao Did you read
https://www.djangoproject.com/weblog/2019/jun/03/security-releases/ ?
אורי
u...@speedy.net
On Mon, Jun 3, 2019 at 4:42 PM wanbao jin wrote:
> What were those security issues? Could you briefly explain about it?
>
> Thanks
>
> On Mon, Jun 3, 2019 at 7:17 PM Carlton Gibson
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On Mon, Jun 03, 2019 at 09:41:59PM +0800, wanbao jin wrote:
> What were those security issues? Could you briefly explain about it?
>
> Thanks
They are described in the blog post that Carlton linked to in the
first email:
What were those security issues? Could you briefly explain about it?
Thanks
On Mon, Jun 3, 2019 at 7:17 PM Carlton Gibson
wrote:
> Today the Django team issued 2.2.2, 2.1.9, and 1.11.21 as part of our
> security process. These releases address security issues, and we encourage
> all users to
Hey, dude didn't get what you are saying. Can you show me via example?
--
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
Hi i need to disable paginato on django admin with not managed model.
Is possible?
--
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
I have 3 models Product,Photo,ProductLikeDislike. I am left joining all the
three. For that I wrote this query:
x=Product.objects.values_list('name','photo','productlikedislike')
Through this I am getting correct left join I printed and checked like this:
*Note*: olx is the name of my Django
Today the Django team issued 2.2.2, 2.1.9, and 1.11.21 as part of our security
process. These releases address security issues, and we encourage all users to
upgrade as soon as possible:
https://www.djangoproject.com/weblog/2019/jun/03/security-releases/
--
You received this message because
Use the parent child relationship in single model
On Mon, Jun 3, 2019, 4:32 PM Aayush Bhattarai Hi, I am using Django==2.2.1 *as Class-Based View. I wanted to add a
> category in a drop down and when anyone clicks it should be gone to
> category.*
> *What will be the best method for doing this?
Hi, I am using Django==2.2.1 *as Class-Based View. I wanted to add a
category in a drop down and when anyone clicks it should be gone to
category.*
*What will be the best method for doing this? Follow the step of DRY.
Thanks for your Time.*
[image: Capture.PNG]
--
You received this message
Hello i'm try to show rest data into my admin site, is possible?
--
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
Hi, I am new to Django and Django ORM. I am using Mongo DB as backed with
DJANGO connector which supports Django native ORM.
I have to generate a percentage metric for the last 30 days. I using the
following function. CAn you please suggest a better way. The function is
taking too long to
what is recommended practice for serving same object to multiple types of
users with slight change in output
for e.g book object or issued book object to lets say staff and students,
is it a good idea to use same URL for both and serve by checking user type
PS: its a JSON based rest API in rest
yes i did the same, and got it working
Thank you
On Tuesday, May 28, 2019 at 1:56:06 AM UTC+5:30, Alexis wrote:
>
> Hi,
> an approach that comes to mind would be defining validation in the model
> and using model forms[1] for the user site.
>
>
> HTH
>
> [1]
Hello mate,
Simple get the value from the objects and store in separate variables. Then
you may do any and as many calculations you want and return the desired
value :)
Kind Regards,
Aditya
On Mon, Jun 3, 2019, 12:18 PM carlos wrote:
> Hi, i used django 1.11 and try used annotate
>
> i have
Hi, i used django 1.11 and try used annotate
i have model with 3 decimal fields i would like sum 2 and multiply for
other field but with aritmetic calculation
i have used this query
(1) total = Model.objects.annotate(all=Sum(F('fieldA') + F('fieldB') *
F('fieldC')))
but this return queryset with
You were rightthe error resolved when I removed curly braces from the
if statement. Thanks alot !!
On 01-Jun-2019 11:26 am, "sagar ninave" wrote:
> you do not have ended for loop
>
> On Fri, May 31, 2019 at 7:41 PM anchal agarwal
> wrote:
>
>> I am creating a simple form in which when a
28 matches
Mail list logo