Porting Django app

2019-05-16 Thread RLM
Hello all. I eventually will need to put my dedicated Django app on another system owned by a Public institution. The app correlates each data set of 26 million plus samples to a QR code for each. Security is major  so nothing can be web based, it must be in house and disconnected from the exte

How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread Balaji Shetty
Hi Can anyone please provide me the resource for implementation of Cascading Dependent Drop Down List in Django Admin GUI. I do now want to write any code and use existing Admin GUI only. I tried many select2 but could not get any success. Here is my sample code *I followed the instructions

Getting MultiValueDictKeyError

2019-05-16 Thread Sipum
Hi Friends, when retrieving file that is uploaded , I'm getting multiValueDictKeyError. Below are my codes. I have proided some codes where I m getting error. could anyone help me here ? views.py - def webform_submit(request): if request.method =='POST': name = request.P

could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2019-05-16 Thread omar ahmed
hii .. i try to publish my first project on python anywhere but it still not working and this is my error : could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refus

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2019-05-16 Thread Rob W
First, you should not share your password to your server to anyone….thats very dangerous. Now anyone can log in to your server with nefarious intentions. Be more careful. But it sounds like something on the server is blocking your connection. > On May 16, 2019, at 8:57 AM, omar ahmed wrote

Generate CUID Client Side

2019-05-16 Thread Timothy Cook
I have a project where I want to generate a CUID client side to send to a REST API service as the document name. My question is how to best include the cuid library so that the client browser is generating the CUID and how to implement this in the template so

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2019-05-16 Thread Test Bot
Did you check your firewall settings? On Thu, May 16, 2019, 6:37 PM Rob W wrote: > First, you should not share your password to your server to anyone….thats > very dangerous. Now anyone can log in to your server with nefarious > intentions. > Be more careful. > > But it sounds like something on

Re: Getting MultiValueDictKeyError

2019-05-16 Thread Test Bot
Try putting encrypt="multipart/form-data" in your form tag On Thu, May 16, 2019, 6:05 PM Sipum wrote: > Hi Friends, > > when retrieving file that is uploaded , I'm getting multiValueDictKeyError. > Below are my codes. I have proided some codes where I m getting error. > could anyone help me here

Re: Can't save to Postgres db locally - Fresher

2019-05-16 Thread salimon jamiu olashile
Hello, >From what I see contact is a model & you want to create a new contact. So, instead of this; c = contact(email='email',subject=‘ subject',message='message') c.save() just do this; c = *contact.objects.create*(email=email, subject=subject, message=message) Regards On Thu, 16 May 2019 a

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2019-05-16 Thread omar ahmed
ok you are right On Thursday, May 16, 2019 at 3:08:01 PM UTC+2, Rob W wrote: > > First, you should not share your password to your server to anyone….thats > very dangerous. Now anyone can log in to your server with nefarious > intentions. > Be more careful. > > But it sounds like something on

Re: Can't save to Postgres db locally - Fresher

2019-05-16 Thread salimon jamiu olashile
Is “contact” a model? On Wed, 15 May 2019 at 8:36 PM, Emmanuel klutse wrote: > Thanks Chetan Ganji, well appreciated. > > H, I changed the method name but problem still persist. > > I have tried all I can to handle the new errors but failed again. > > When I changed the contact here to con

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2019-05-16 Thread omar ahmed
no but can it struggle it ? how can i check it On Thursday, May 16, 2019 at 3:09:55 PM UTC+2, OnlineJudge95 wrote: > > Did you check your firewall settings? > > On Thu, May 16, 2019, 6:37 PM Rob W > > wrote: > >> First, you should not share your password to your server to anyone….thats >> very d

WAMP server loading static files when DEBUG = True not when DEBUG=False even after collectstatic

2019-05-16 Thread chirag soni
I deployed a django based app on WAMP server using mod_wsgi and to serve all the static files I run the `py manage.py collectstatic` command. I checked that the site is serving well but the static files are serving only when DEBUG=True. But as per the Django's document

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2019-05-16 Thread Test Bot
So one check would be to see all the connections that are allowed by your firewall. On Thu, May 16, 2019, 6:45 PM omar ahmed wrote: > no but can it struggle it ? > how can i check it > > On Thursday, May 16, 2019 at 3:09:55 PM UTC+2, OnlineJudge95 wrote: >> >> Did you check your firewall setting

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2019-05-16 Thread omar ahmed
do you mean firewall stop all connections ?? thank you On Thursday, May 16, 2019 at 3:24:52 PM UTC+2, OnlineJudge95 wrote: > > So one check would be to see all the connections that are allowed by your > firewall. > > On Thu, May 16, 2019, 6:45 PM omar ahmed > > wrote: > >> no but can it struggle

i am new i want full details of Django

2019-05-16 Thread Sanjay K
could u please provide the basic books -- 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 post to this group, send ema

Re: Run django in apache2.4+centos7.5+python2.7

2019-05-16 Thread Kurosh Sol
thank you I just try it but its totally different with apache and give me in different port(81) I am looking for using Django in apache with port 80 On Wed, May 15, 2019 at 11:22 PM Chetan Ganji wrote: > This might help you. > > https://bitnami.com/stack/django/installer > > > Regards, > Cheta

Re: Any open source project for beginner to start with ?

2019-05-16 Thread himanshu chouhan
I've already hosted it on heroku - http://bit.ly/2VHL3Iu On Thu, May 16, 2019 at 6:58 AM Joe Reitman wrote: > Do you have your website available to see on github? > > On Wednesday, May 15, 2019 at 3:44:30 PM UTC-5, himanshu chouhan wrote: >> >> Hi All, >> >> I know this ppl discuss really import

Re: Email Django app.

2019-05-16 Thread wembo mulumba
Make Good use of SMTP and POP3 or IMAP, I 100% believe with those 3 technologies you can achieve it. Just getting started with django so i can't help much with the structure or coding. And yes it can be done locally like any other frameworks On Saturday, 11 May 2019 00:18:01 UTC+2, Marvelous I

Re:

2019-05-16 Thread Sid4Na
try accessing the form data using the below format: form.cleaned_data.get('email')) Regards On Thursday, May 16, 2019 at 5:42:58 AM UTC+10, Marvelous Ikechi wrote: > > Hello guys, > > I'm trying to write to my settings.py file from the data I received from > my form, but it isn't recognizing t

Re: django manage.py will not work

2019-05-16 Thread Sid4Na
what is the error description you are getting ? On Wednesday, May 15, 2019 at 10:23:13 PM UTC+10, Ishant Agrawal wrote: > > manage.py will not work how we handle this issue > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: Any open source project for beginner to start with ?

2019-05-16 Thread himanshu chouhan
Thankyou for helping out sam, I'm actually looking for some real world hands-on experience, I've have been trying to build few websites and Api's but mostly the work is aimless, need to someone to guide me, what all things to study and in what sequence, at this point of time i'm random browsing top

Re: How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread carlos
try this app https://django-autocomplete-light.readthedocs.io/en/master/ On Thu, May 16, 2019 at 5:59 AM Balaji Shetty wrote: > > Hi > > Can anyone please provide me the resource for implementation of Cascading > Dependent Drop Down List in Django Admin GUI. > > I do now want to write any code a

Re: Getting MultiValueDictKeyError

2019-05-16 Thread Sipum Mishra
Hi friends, still getting same error after using encrypt.. Bt if i am using request. POST. get('document') then error vanishes but another error comes as job_title is an invalid keyword argument for this function. Kindly help on this issue. I m trying hard but unable to solve. Thanks On Thu, 16

Re: i am new i want full details of Django

2019-05-16 Thread Vinicius Assef
http://docs.djangoproject.com On Thu, 16 May 2019 at 10:59, Sanjay K wrote: > could u please provide the basic books > > -- > 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, sen

CRUD and Aggregation queries example

2019-05-16 Thread Prabakaran Balaji
Hi, Could someone share me the link for, How CRUD operations should be implemented? and How to use the aggregation queries based on data from the database? Thanks and regards, Praba -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

PUT/DELETE Method not allowed

2019-05-16 Thread Prabakaran Balaji
Hi, Error - "detail": "Method \"PUT\" not allowed." Getting above error When I try to update the model. Can someone help me on this? Thanks, Prabu -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Any open source project for beginner to start with ?

2019-05-16 Thread Joe Reitman
Looks good on mobile. Nice job. On Thursday, May 16, 2019 at 9:00:18 AM UTC-5, himanshu chouhan wrote: > > I've already hosted it on heroku - > http://bit.ly/2VHL3Iu > > On Thu, May 16, 2019 at 6:58 AM Joe Reitman > wrote: > >> Do you have your website available to see on github? >> >> On Wednesd

Re: i am new i want full details of Django

2019-05-16 Thread Joe Reitman
This book really helped me get started. "Django for Beginners: Build websites with Python and Django" by William S. Vincent. https://www.amazon.com/Django-Beginners-Build-websites-Python-ebook/dp/B079ZZLRRL/ref=pd_sim_351_1/147-5244532-7545404?_encoding=UTF8&pd_rd_i=B079ZZLRRL&pd_rd_r=2fb5f10a-7

Training

2019-05-16 Thread Scyil sharma
Can anyone suggest the best Django summer training in india -- 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 post t

Anyone kind enough to help me understand these few concepts

2019-05-16 Thread DumbaClassics
I am still new on Django Web Framework and I want to understand the MVC concept based on this Project structure. Say I am trying to come up with an Online Gambling platform. Where exaclty do put the following; 1. say I want the player to randomly shuffle cards, is this whole business called on

Re: Anyone kind enough to help me understand these few concepts

2019-05-16 Thread Test Bot
Hi In models you have to define your database tables as class and any response to the user should be handled in views.py You can introduce randomness via random module or for any customisation you can write it as a different app altogether. You can create your coin as a separate model and attach

Re: Anyone kind enough to help me understand these few concepts

2019-05-16 Thread Joel Mathew
I would suggest you go through the official tutorial. Your questions don't have relation to django. It seems you're still at the concept/algorithm level of your app. In django, you put all your logic in your views, retrieve data from models into views, and then pass the data from views to template

Re: How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread Balaji Shetty
Dear carlos Thank You very much. On Thu, May 16, 2019 at 8:16 PM carlos wrote: > try this app > https://django-autocomplete-light.readthedocs.io/en/master/ > > On Thu, May 16, 2019 at 5:59 AM Balaji Shetty > wrote: > >> >> Hi >> >> Can anyone please provide me the resource for implementation of

Re: Can't save to Postgres db locally - Fresher

2019-05-16 Thread Emmanuel klutse
Thanks, I tried your approach but it failed again. I will start all over with a different approach. I will update you if I find a way out. > On May 16, 2019, at 1:45 AM, salimon jamiu olashile > wrote: > > Hello, > > From what I see contact is a model & you want to create a new contact. So,

Re: Google Plus going away - is Groups staying ?

2019-05-16 Thread Markus Berndner
markus-bernd...@t-online.de markus-bernd...@web.de markus.bernd...@gmail.com markusbernd...@gmail.com -- 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-user

Re: Google Plus going away - is Groups staying ?

2019-05-16 Thread Ari Davidow
Google creates and drops products all the time. The ones that get dropped are generally unpopular ones (or ones that they can’t monetize). Google Groups is in no danger of being dropped anytime soon. > On May 16, 2019, at 4:19 PM, Markus Berndner > wrote: > > markus-bernd...@t-online.de > mar

Re: WAMP server loading static files when DEBUG = True not when DEBUG=False even after collectstatic

2019-05-16 Thread Mike Dewhirst
On 16/05/2019 11:15 pm, chirag soni wrote: I deployed a django based app on WAMP server using mod_wsgi and to serve all the static files I run the `py manage.py collectstatic` command. I checked that the site is serving well but the static files are serving only when DEBUG=True. But as per th

httpd.conf error on include django.conf and duplicate wsgi name

2019-05-16 Thread Kurosh Sol
I want to set up my Django in Apache server using wsgi I have already install mod_wsgi but when I make django.conf and try to include it in my "etc/apache2/conf.d/includes/pre_main_global.conf to get include to my httpd.conf i got this error in my whm Sorry, you cannot update the include files a