Saving data from query to another table

2019-12-02 Thread Irfan Khan
Hi all, Requirement : I have two tables. In first table I have some data which is already stored. And now I have created one form for search data from that existing data table, when result found I wanted to store that data to another table, can any one pls guide my easy way to overcome. Thank

Re: Which Cloud Service Provider should be chosen to host Django Application

2019-12-02 Thread Debabrata Chakraborty
Many thanks Bill, I am starting to see the bigger picture now. My site is just a basic blog for a non-profit. It's gonna be low traffic with no payment method attached. I checked out AWS and it's a bit overwhelming for a beginner like me. Guess I'll do a test run with Heroku's free account to get

Re: How can I host my application in web hosting?

2019-12-02 Thread Debabrata Chakraborty
Thanks for all the help guys. That was kind of you. Cheers! Deb On Tue, Dec 3, 2019 at 3:19 AM RLM wrote: > Apologies for triple post, dont know why it happened. > Roger > On 2/12/19 9:09 am, RLM wrote: > > Hello. > AWS has no limitations. > Simply start an instance running ubuntu, windows,

Re: Link a .css to a Html template

2019-12-02 Thread Integr@te System
Hi Leo, Plz look at err/change log in developer tools to inspect whats up, after you adjust files. On Tue, Dec 3, 2019, 06:20 Gerardo Palazuelos Guerrero < gerardo.palazue...@gmail.com> wrote: > Hi, > You better share your repo, my guess is you are not sharing all details... > > On my case I

Re: pip install Django==3.0

2019-12-02 Thread אורי
On Mon, Dec 2, 2019 at 9:24 PM Simon Charette wrote: > Dear Uri, > > > When I use pip to install a package, does it depend on the version of > Python I'm using? > > Yes, it does. > > > I noticed that Django 3.0 doesn't support Python 3.5. But why does pip > fail? > > Pip will respect the

Re: pip install Django==3.0

2019-12-02 Thread Abu Yusuf
[image: django-3.png] *They clearly mentioned here.* [image: photo] Abu Yusuf Jr. Software Engineer at Binate Solutions Ltd. A Dhaka, Bangladesh M 01828689381 <01828689381> E revelyusuf...@gmail.com W https://yusuff.dev Linkedin https://www.linkedin.com/in/yusuf-dev/

ModelChoiceField get selected value

2019-12-02 Thread sum abiut
How do I get the value of a selected model choice field? I have a model that has a field 'user' as a foreignKey and I am trying to figure out how to get the value of a user that was selected. I have a form that looks like below, [image: image.png] class update_entitlement_form(forms.ModelForm):

Re: Which Cloud Service Provider should be chosen to host Django Application

2019-12-02 Thread Mike Dewhirst
On 3/12/2019 2:10 am, Bill Freeman wrote: You don't want sensitive customer financial (or medical) records on your site.  (You would need full time security staff, and probably private physical servers to do that safely.) That is a very good point. All the major CPU manufacturers use

Re: Link a .css to a Html template

2019-12-02 Thread Gerardo Palazuelos Guerrero
Hi, You better share your repo, my guess is you are not sharing all details... On my case I integrated a template with a Django project as a practice ( my repo: https://github.com/gpalazuelosg/django-adminlte ), the important bits: #1: settings.py has at the end two entries: STATIC_URL =

Re: Link a .css to a Html template

2019-12-02 Thread Suraj Thapa FC
Remove cache and try again On Tue, 3 Dec 2019, 3:39 am Leó Horváth, wrote: > hi, > I did what Kevin requested, now console says "GET /pages/ HTTP/1.1" 200 > 536 and the style still doesn't work. > Any ideas? > Thanks, > Leó > > Kevin Dublin ezt írta (időpont: 2019. dec. 2., H, > 21:41): > >>

Re: Link a .css to a Html template

2019-12-02 Thread Leó Horváth
hi, I did what Kevin requested, now console says "GET /pages/ HTTP/1.1" 200 536 and the style still doesn't work. Any ideas? Thanks, Leó Kevin Dublin ezt írta (időpont: 2019. dec. 2., H, 21:41): > Hi Leo, > > Make sure that you point to the exact directory where the CSS file is > located. If

Re: How can I host my application in web hosting?

2019-12-02 Thread SOFI BILAL
i also don't know! -- 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 view this discussion on the web visit

Re: How can I host my application in web hosting?

2019-12-02 Thread RLM
Apologies for triple post, dont know why it happened. Roger On 2/12/19 9:09 am, RLM wrote: Hello. AWS has no limitations. Simply start an instance running ubuntu, windows, or what ever, just like you have for development,  install dependencies and updates and you should be good to go. Read

Re: Link a .css to a Html template

2019-12-02 Thread Kevin Dublin
Hi Leo, Make sure that you point to the exact directory where the CSS file is located. If it's in static/pages/frame.css, then point to {% static "pages/frame.css" %} Cheers, Kevin On Mon, Dec 2, 2019, 11:15 AM Leó Horváth wrote: > hi! i still cant make it work. this is my html snippet and

Re: Django 3.0 Released.

2019-12-02 Thread o1bigtenor
On Mon, Dec 2, 2019 at 6:18 AM Carlton Gibson wrote: > > Django 3.0 is now available. > > https://www.djangoproject.com/weblog/2019/dec/02/django-3-released/ > > With the release of Django 3.0, Django 2.2 has reached the end of > mainstream support. The final minor bug fix release (which is also

Re: orm relation

2019-12-02 Thread Integr@te System
Hi friend, All_list = list(users.object.aggregate(age = cast(extractyear(datetime.now()) - extractyear(dat_nais), output_field = IntField())).filter(extractyear(dat_enc) - extractyear(annee)__gt = 3 & extractyear(datetime.now()) - extractyear(dat_nais)__IN=range(54,70) & cod_nad__contain =

Re: pip install Django==3.0

2019-12-02 Thread Simon Charette
Dear Uri, > When I use pip to install a package, does it depend on the version of Python I'm using? Yes, it does. > I noticed that Django 3.0 doesn't support Python 3.5. But why does pip fail? Pip will respect the supported version metadata of the package. There's no package available for

Re: Link a .css to a Html template

2019-12-02 Thread Leó Horváth
hi! i still cant make it work. this is my html snippet and the .css is located at static/pages/frame.css. when i run the server the browser displays the hard coded html but not the style. console says "GET /static/frame.css HTTP/1.1" 404 1651 {% load static %} {% block

Re: pip install Django==3.0

2019-12-02 Thread JP Smith
Django 3.0 does not support Python 3.5 . https://docs.djangoproject.com/en/3.0/releases/3.0/ ‪On Mon, Dec 2, 2019 at 11:06 AM ‫אורי‬‎ wrote:‬ > Django users, > > When I use pip to install a package, does it depend on the version of > Python I'm using? > > pip install Django==3.0 fails with

Re: pip install Django==3.0

2019-12-02 Thread JP Smith
Django 3.0 does not support Python 3.5: > > https://docs.djangoproject.com/en/3.0/releases/3.0/ -- 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

Re: pip install Django==3.0

2019-12-02 Thread Ramiro Morales
‪On Mon, Dec 2, 2019 at 1:06 PM ‫אורי‬‎ wrote:‬ > Django users, > > When I use pip to install a package, does it depend on the version of > Python I'm using? > > pip install Django==3.0 fails with Python 3.5: > https://travis-ci.org/speedy-net/speedy-net/builds/619671495 > > But it succeeds with

Re: pip install Django==3.0

2019-12-02 Thread John McClain
try without specifying version try without using pip what ide are you using ‪On Mon, 2 Dec 2019 at 16:05, ‫אורי‬‎ wrote:‬ > Django users, > > When I use pip to install a package, does it depend on the version of > Python I'm using? > > pip install Django==3.0 fails with Python 3.5: >

pip install Django==3.0

2019-12-02 Thread אורי
Django users, When I use pip to install a package, does it depend on the version of Python I'm using? pip install Django==3.0 fails with Python 3.5: https://travis-ci.org/speedy-net/speedy-net/builds/619671495 But it succeeds with Python 3.6 and 3.7. I noticed that Django 3.0 doesn't support

Re: Retrying query when connection error

2019-12-02 Thread Mateusz MTB90
Some suggestion? W dniu czwartek, 28 listopada 2019 12:09:46 UTC+1 użytkownik Mateusz MTB90 napisał: > > Hi It is possible to catch connection error in Django and retry query? > How this can be done? > > Scenario: > query -> connection error occurs -> catch connection error -> create new >

Re: Which Cloud Service Provider should be chosen to host Django Application

2019-12-02 Thread Bill Freeman
Deployment for a production environment is never without complications. And that is affected by how much you choose to configure yourself. I can't speak for Heroku, Digital Ocean, or Python Anywhere, because I haven't used them. Perhaps some of their users will comment. Even with virtual

Re: How to write raw SQL or ORM for Count

2019-12-02 Thread Luqman Shofuleji
You need to do some little reading about Django aggregation https://docs.djangoproject.com/en/2.2/topics/db/aggregation/#topics-db-aggregation Example from django.db.models import Max, Count, Sum Publisher.objects.values('name').annotate(*dcount*=Count('name')) As seen above you can apply

Re: orm relation

2019-12-02 Thread bill dexter
thank you, but if you can give me answer to this exacte probleme, as mentioned in question Le dim. 1 déc. 2019 à 18:55, Integr@te System a écrit : > Hi, > > here u can try for complex queryset > > > > https://docs.djangoproject.com/en/2.2/topics/db/queries/#complex-lookups-with-q > > On Sun,

Re: How to write raw SQL or ORM for Count

2019-12-02 Thread RONAK JAIN
What you want to hear please cear that one.. Thanks On Mon, 2 Dec 2019, 19:13 xiaopeng luo, wrote: > I am new to django ORM, I want query something like this: > > input: > AAAfemale1 > AAAfemale2 > BBBmale 1 > BBBmale 3 > AAAmale 2 > > > > output >

How to write raw SQL or ORM for Count

2019-12-02 Thread xiaopeng luo
I am new to django ORM, I want query something like this: input: AAAfemale1 AAAfemale2 BBBmale 1 BBBmale 3 AAAmale 2 output AAAfemale3 AAAmale 2 BBBmale 4 Sorry, my english is not good. Thanks for everyone help me. --

Django 3.0 Released.

2019-12-02 Thread Carlton Gibson
Django 3.0 is now available. https://www.djangoproject.com/weblog/2019/dec/02/django-3-released/ With the release of Django 3.0, Django 2.2 has reached the end of mainstream support. The final minor bug fix release (which

Unit test in django

2019-12-02 Thread Saswat Ray
*def webhook_register(request, organization_pk, campaign_id):user_id = Campaign.objects.filter(id=campaign_id)user_id = user_id[0].__dict__["user_id"]# social_user_details = UserSocialAuth.objects.filter(provider=request.GET["provider"], user_id=user_id)social_user_details =

Re: How can I host my application in web hosting?

2019-12-02 Thread John McClain
Deb, I find Heroku very simple to use once you are setup. Publish to github (free if not needing to be private repo) Github updates Heroku automatically (also free but only runs when called to so it is slow when first opening page then runs normal unless you upgrade to paid.) Also use AWS S3

Re: Django security releases issued: 2.2.8 and 2.1.15.

2019-12-02 Thread Integr@te System
Many thanks Django Team and Carlton's informing. On Mon, Dec 2, 2019, 16:28 אורי wrote: > Bugfixes is empty on > https://docs.djangoproject.com/en/2.2/releases/2.1.15/ > אורי > u...@speedy.net > > > On Mon, Dec 2, 2019 at 11:12 AM Carlton Gibson > wrote: > >> Today the Django team issued

Re: Django security releases issued: 2.2.8 and 2.1.15.

2019-12-02 Thread אורי
Bugfixes is empty on https://docs.djangoproject.com/en/2.2/releases/2.1.15/ אורי u...@speedy.net On Mon, Dec 2, 2019 at 11:12 AM Carlton Gibson wrote: > Today the Django team issued 2.2.8 and 2.1.15 as part of our security > process. These releases address security issues, and we encourage

Django security releases issued: 2.2.8 and 2.1.15.

2019-12-02 Thread Carlton Gibson
Today the Django team issued 2.2.8 and 2.1.15 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/dec/02/security-releases/