Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-06-27 Thread Rudy Quiroga Gamboa
Hi, I have the same problem, did you find the problem or the solution ? El martes, 28 de mayo de 2019, 20:44:44 (UTC-4), K Tan escribió: > > Hi, everyone, > > This is my first time using Django and I think I'm missing something or > there is a bug. I am following the instructions on ( >

Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-22 Thread Chetan Ganji
Hello Balaji Sir, AFAIK, Django does not filter the foreign key fields by default, Cascading Drop Down is not available by default in django. If the filtering was to be done on the initial value only, you could have overwritten the __init__() in the form to filter the fk values. But that does not

Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-22 Thread Nitin Kumar
Hi, The field 'continent' in Location model is redundant, should not be there. class Location(models.Model): continent = models.ForeignKey(Continent,on_delete=models.CASCADE) country = models.ForeignKey(Country,on_delete=models.CASCADE) city = models.CharField(max_length=50)

Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-21 Thread Balaji Shetty
Hi I have registered model in admin.py Added Continent ( Cont1, Cont2, Cont3 ) Added Country under Continent Cont1 - Count11 Cont1- Count12 Cont2 - Count21 Cont2-Count22 Con3-Count31 Con3-Count31 When I add Location When i select Cont1, I should get only Count11 , Count12 When i select

Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-21 Thread Nitin Kumar
Everything seems alright. It seems you haven't created any continents yet. The table is empty. On Wed, 22 May, 2019, 10:52 AM Balaji Shetty Hi > > I am learning Django from last months and want to implement Cascading Drop > Down for Continent and Country in Admin GUI. > > I dropped same query

Re: Need help with project

2019-05-08 Thread Guru Murthy
Try django2 by example by Antonio mele will guide how to do project with django Regards, Gurumurthy P On Wed, 8 May, 2019, 8:32 PM Rob W, wrote: > There are a few of us in a group slack who are trying to build a working > production django ap for reporting. > We are looking for someone who

Re: Need Help

2019-05-07 Thread Chetan Ganji
As far as I know, there are only two dependency for the django, that is pytz and sqlparse. Rest of the code for django is written from scratch. You can confirm this by creating a new virtualenv and install django inside it. Command will install django as well as other 2 libraries. Regards,

Re: need help

2019-04-25 Thread Manoj Kumar Singh
Many of the interviewer asked me how many libraries and frameworks are used in django project. Please let me know the correct answer. On Thu, Apr 25, 2019 at 10:32 PM Karan Mittal wrote: > you can read my articles over Django over this website, I am writing it in > a language which beginners

Re: need help

2019-04-25 Thread Karan Mittal
you can read my articles over Django over this website, I am writing it in a language which beginners can understand easily and can make something of their own. https://data-flair.training/blogs/category/django/ These articles are sure to help you with your web-development learning. Thank you,

Re: need help

2019-04-25 Thread Meow
hi, maybe you can try DjangoBook which is very nice tutorial site ~ On Apr 25, 2019, 20:01 +0800, kashinath kambar , wrote: > I am new to python development, can anyone help me out by giving some > beginners projects.. and how to improve my coding skills. > > -- > You received this message

Re: need help

2019-04-25 Thread Balaji Shetty
Hi You can see Try Django Tutorial Seris on Youtube ( Free ). Very nice and you can get good Knowledge On Thu, Apr 25, 2019 at 5:31 PM kashinath kambar wrote: > I am new to python development, can anyone help me out by giving some > beginners projects.. and how to improve my coding skills.

Re: Need Help in Django 2.1 (Over_view )

2019-03-01 Thread Jason
https://www.mikeash.com/getting_answers.html Might want to ask a question first -- 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: Need help with db save.

2018-12-12 Thread Ira Abbott
Hi, Profile(newuser.pk,customerid=form1.cleaned_data['customer']) should be: Profile(user_id=newuser.pk,customerid=form1.cleaned_data['customer']) user is a ForeignKey, so you assign user= after performing a get(), or you use the form above with your pk - i.e. 'the user record whose id field

Re: Need help

2018-11-23 Thread رهام صادقی
Hi, you can use request.user and check for this if exists. If so you can redirect this user to another page or in your template do not show any thing or pop up some errors. ‫<‪a...@codism.io‬‏> در تاریخ جمعه ۲۳ نوامبر ۲۰۱۸ ساعت ۲۰:۴۹ نوشت:‬ > If suppose a user is logged in to the system, and

Re: need help on form view

2018-11-23 Thread Kasper Laudrup
Hi Pradeep, On 23/11/2018 18.56, Pradeep Singh wrote: how to use javascript in django...please tell me You don't use javascript in Django. There are some Python modules for executing javascript code from your Python code, but why would you want to do that? You're probably talking about

Re: need help on form view

2018-11-23 Thread Pradeep Singh
how to use javascript in django...please tell me On Fri, 23 Nov 2018 at 18:51, Yavin Aalto Arba wrote: > I think the problematic part is " create_user = UserCreationForm(request. > POST or None)" > > Most FBV for forms start with the "if request.method == 'POST" and then > continue to fill the

Re: need help on form view

2018-11-23 Thread Yavin Aalto Arba
I think the problematic part is " create_user = UserCreationForm(request. POST or None)" Most FBV for forms start with the "if request.method == 'POST" and then continue to fill the form. You can set the "None" after the if statement instead of before everything else. I am not sure that the or

Re: Need help with CDN on Django App using heroku

2018-10-22 Thread Andrew Pinkham
On Oct 22, 2018, at 11:53, Akash Purandare wrote: > However the issue is not with Whitenoise. Whitenoise can be used to serve > static files, yes. But how do I use it to serve media assets in the project? Sorry, missed the media part. Michal is right, you will need to install and configure

Re: Need help with CDN on Django App using heroku

2018-10-22 Thread Akash Purandare
Thank you for the fast reply. However the issue is not with Whitenoise. Whitenoise can be used to serve static files, yes. But how do I use it to serve media assets in the project? On Monday, October 22, 2018 at 9:11:02 PM UTC+5:30, Andrew Pinkham wrote: > >

Re: Need help with CDN on Django App using heroku

2018-10-22 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Mon, Oct 22, 2018 at 08:38:25AM -0700, Akash Purandare wrote: > I am trying to serve both static and media files on Heroku by using an S3 > bucket, but I do not know how to properly configure the settings.py for the > same. > Does anyone know

Re: Need help with CDN on Django App using heroku

2018-10-22 Thread Andrew Pinkham
https://devcenter.heroku.com/articles/django-assets http://whitenoise.evans.io/en/stable/django.html -- 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: Need help for sql stored proc

2018-10-17 Thread Gurmeet Kaur
Thank you Matthew for sharing this link with me but my situation is: I have some textboxes whose value I want to pass to sql query and want to do a select *. Right now, I am doing that with the help of queryset but the issue I am facing with this approach is that I need to do multiple ifs and

Re: Need help in creating responsive web page using Python

2018-10-17 Thread Daniel Veazey
A good place to start is the official tutorials: https://docs.djangoproject.com/en/2.1/intro/ Incorporating Bootstrap is a good way to make your sites responsive: https://getbootstrap.com/ https://www.w3schools.com/bootstrap4/default.asp On Wednesday, October 17, 2018 at 8:04:04 AM UTC-5, Soumya

RE: Need help for sql stored proc

2018-10-17 Thread Matthew Pava
https://docs.djangoproject.com/en/2.1/topics/db/sql/#calling-stored-procedures From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Gurmeet Kaur Sent: Wednesday, October 17, 2018 11:06 AM To: django-users@googlegroups.com Subject: Need help for sql stored proc

Re: Need help for sql stored proc

2018-10-17 Thread Sudha Mohan
hi friends tell me future of django jobs and salaries with 2+ experience On Wed, Oct 17, 2018 at 9:36 PM Gurmeet Kaur wrote: > > Hi all, > > I have a ms sql stored proc and want to use it. How can I do that? Do I need > to write the class just like a view in models.py? > > Please suggest. > >

Re: Need help in creating responsive web page using Python

2018-10-17 Thread nerdfiles
Try using http://surge.sh with https://foundation.zurb.com/templates.html. On Wednesday, October 17, 2018 at 8:04:04 AM UTC-5, Soumya Mishra wrote: > > I am totally new to development > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Need help in creating responsive web page using Python

2018-10-17 Thread Mikhailo Keda
It's not related to Python, check https://getbootstrap.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-users+unsubscr...@googlegroups.com. To post

Re: Need help with unique_together - on ForeignKey and Boolean field

2018-10-05 Thread Manjunath
How are you deciding which post is pinned? The unique approach might not do any good to you. A simple solution is to update the pinned values of each post to False & setting the required post pinned value to True when you are setting a pinned post. There may be better solutions, but I hope this

Re: Need help with unique_together - on ForeignKey and Boolean field

2018-10-05 Thread heriberto ochoa
well, maybe using forms, and the parameter initial of the send form to the template https://docs.djangoproject.com/en/2.1/ref/forms/fields/#initial or directly with javascript El vie., 5 oct. 2018 a las 10:35, Chuka Nwadiogbu () escribió: > Hi, I know it has been a while since this question was

Re: Need help with unique_together - on ForeignKey and Boolean field

2018-10-05 Thread Chuka Nwadiogbu
> > Hi, I know it has been a while since this question was asked but I have a > similar question. I have a Post model, and I want there to be one pinned > post out of the list of all posts, I tried creating a new property thus, ```pinned = models.BooleanField(default=False,

Re: Need help for saving JSON object into Django Model (class object)

2018-09-05 Thread Sonali Vighne
Thanks , it works for me. there is minor changes request.data is not working, so I tried request.body and then extracted value from dict. Do you know any other way to it without using dict. if yes please , help with same. On Tuesday, September 4, 2018 at 8:29:58 PM UTC+5:30, pgopa...@gmail.com

Re: Need help for saving JSON object into Django Model (class object)

2018-09-05 Thread Sonali Vighne
Thanks I will try it. On Tuesday, September 4, 2018 at 8:29:58 PM UTC+5:30, pgopa...@gmail.com wrote: > > # Please try to use this logic in your views.py file. > # first extract the data from the request > > question_text = request.data['question_text'] > pub_date = request.data['pub_date ']

Re: Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread pgopal1166
# Please try to use this logic in your views.py file. # first extract the data from the request question_text = request.data['question_text'] pub_date = request.data['pub_date '] #Then store this data in your model. Question.objects.create(question_text =question_text , pub_date = pub_date

Re: Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread RONAK JAIN
hello Sonali Please use: python manage.py makemigrations python manage.py migrate Thanks Ronak Jain On Tue, Sep 4, 2018 at 5:52 PM Sonali Vighne wrote: > Hi, > I have create a model > > Models.py > > from django.db import models > import datetime > from django.utils import timezone > > class

Re: Need help for DJango on Windows server with MS SQL Server 2012

2018-07-12 Thread Jason
To answer your first question, that's wehre you look into the project's compatibility documentation and do your own research. Second question: that is a complete unknown, as you're asking us to be fortune tellers and be able to tell the future. In essence, both of your questions can be

Re: Need help

2018-05-27 Thread Umar Kambala
Thank u will try it On May 27, 2018 7:01 PM, "Dheeraj Singh" wrote: > I will encourage you to use pyCharm for same it will give you kick start > > On Sun, May 27, 2018 at 7:14 PM, Umar Kambala > wrote: > >> I wans to start a new project on de django

Re: Need help

2018-05-27 Thread Dheeraj Singh
I will encourage you to use pyCharm for same it will give you kick start On Sun, May 27, 2018 at 7:14 PM, Umar Kambala wrote: > I wans to start a new project on de django web development but wen I type > >django-admin startproject mysite I get this error >

Re: Need help

2018-05-27 Thread Zahid Hossain
Install django latest version On Sun, May 27, 2018 at 7:44 PM, Umar Kambala wrote: > I wans to start a new project on de django web development but wen I type > >django-admin startproject mysite I get this error > CouldNotFoundError:No module name 'django.template' plz

Re: need help

2018-05-20 Thread Umar Kambala
Page not found (404) Request Method: GET Request URL:http//127.0.0.1:800/ Using the URLconf defined in mysite.urls, Django tries these URL patterns, in this order: 1. admin/ 2. personal/ The empty path didn't match any of these. This is the mge I hv been getting when ever I run my surver on

Re: need help

2018-05-19 Thread James Farris
What does your settings.py look for k like? Can you copy/paste it here? On Sat, May 19, 2018 at 9:00 AM Umar Kambala wrote: > DEBUG is on but when I runserver the content on my header.html is not > displaying on de browser. It gives me not found on de cmd window n 404 >

Re: need help

2018-05-19 Thread Umar Kambala
DEBUG is on but when I runserver the content on my header.html is not displaying on de browser. It gives me not found on de cmd window n 404 error on de webpage. On May 19, 2018 3:37 PM, "James Farris" wrote: If you set DEBUG = True Then restart your python server then

Re: need help

2018-05-19 Thread James Farris
If you set DEBUG = True Then restart your python server then reload the page, what is the output? It’s best to leave debug on until you have all the bugs worked out since it provides a lot of information that will tell you what’s happening Sent from my mobile device > On May 19, 2018, at

Re: need help

2018-05-19 Thread Umar Kambala
I have been following de tutorials on web development but got lost on de peronal. Wen I run my server its gud to go but it won't display de content on de web browser. It always give me 404 error On May 19, 2018 3:28 PM, "James Farris" wrote: > Are you asking where DEBUG =

Re: need help

2018-05-19 Thread James Farris
Are you asking where DEBUG = False is? If so, it would be in your project folder/project name/settings.py Sent from my mobile device > On May 19, 2018, at 4:36 AM, Umar Kambala wrote: > > How to I set my debug = false? On my django settings.. I don't know where to >

Re: need help

2018-05-19 Thread Umar Kambala
How to I set my debug = false? On my django settings.. I don't know where to get de settings On May 3, 2018 12:52 AM, "Gerald Brown" wrote: Have you tried "pip install django" without the "== 2.0.5". I think that if you do not specify a version pip will install the latest

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury' via Django users
Serves me right for writing code without testing :-( It of course should be :             import os             top_dir = os.path.join(os.getcwd(), 'python_created_me')             os.makedirs(top_dir) Glad you have it sorted - and glad it turned out not to be Django ... On 03/05/18 17:06,

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
Ha! I will try to see what will happen when I disable Comodo. I hope it will work properly then. Thanks Fidel Leon. On Thu, May 3, 2018 at 6:24 PM, Fidel Leon wrote: > As part of its protection, Comodo Antivirus has something named > “sandboxing”, so when you execute anything,

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
As part of its protection, Comodo Antivirus has something named “sandboxing”, so when you execute anything, Comodo catches it, runs it inside a protected environment and if it finds it’s not malware, runs the actual command. Seems Comodo is mapping your D: drive to that C:\VTRoot\HarddiskVolume1

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
Yes? :/ On Thu, May 3, 2018 at 6:09 PM, Fidel Leon wrote: > Are you using Comodo Antivirus? > > https://forums.malwarebytes.com/topic/181573-cvtroot/ > > > > El jue., 3 may. 2018 a las 18:06, Duška Miloradović (< > daisyfields...@gmail.com>) escribió: > >> Anthony, I got this: >>

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
Are you using Comodo Antivirus? https://forums.malwarebytes.com/topic/181573-cvtroot/ El jue., 3 may. 2018 a las 18:06, Duška Miloradović (< daisyfields...@gmail.com>) escribió: > Anthony, I got this: > > D:\projectdir>python create_dir.py > Traceback (most recent call last): > File

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
Anthony, I got this: D:\projectdir>python create_dir.py Traceback (most recent call last): File "create_dir.py", line 2, in top_dir = path.join(os.getcwd(), 'python_created_me') NameError: name 'path' is not defined I searched for it through windows explorer again and I actually *found

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Fidel Leon
Please try to create a different project specifying -v 3: $ django-admin startapp -v 3 mytest The output should tell you where django-admin is creating its files and could be a clue about where is your mysite :) El jue., 3 may. 2018 a las 14:24, Duška Miloradović (< daisyfields...@gmail.com>)

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury' via Django users
On 03/05/18 08:06, Anthony Flury wrote: On Thursday, 03 May, 2018 03:25 PM, Daisy wrote: I tried what you suggested and got this: D:\projectdir>python create_dir.py Traceback (most recent call last):   File "create_dir.py", line 1, in     from os import mkdirs

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
I wrote what versions I have installed in first post, but here is a result of what you've asked: For the first command output is: Python 3.6.3 and for the second: 2.0.5 On Thu, May 3, 2018 at 3:43 PM, James Farris wrote: > If you run these two commands from your command

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread James Farris
If you run these two commands from your command line, what is the output? python -V django-admin.py version > On May 3, 2018, at 5:23 AM, Duška Miloradović > wrote: > > Ayser, thank you very much but that did not help neither. It is still the > same - command ends

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
Ayser, thank you very much but that did not help neither. It is still the same - command ends successfully but still I do not see new folder created. On Thu, May 3, 2018 at 8:13 AM, Ayser shuhaib wrote: > Create your projectdir manually then inside the projectdir

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Umar Kambala
That its not recognized as internal or external command On May 3, 2018 11:21 AM, "Ayser shuhaib" wrote: > Create your projectdir manually then inside the projectdir folder (right > click with your mouse and open command window here) > After that continue with Django

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Ayser shuhaib
Create your projectdir manually then inside the projectdir folder (right click with your mouse and open command window here) After that continue with Django commands django-admin startproject ... On Thu, 03 May 2018 at 07:59, Daisy wrote: > Thank you very much for your

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Duška Miloradović
It is on C. I tried to create "mysite" also on C path but the result is the same. On Thu, May 3, 2018 at 9:49 AM, Gerald Brown wrote: > Is Django installed on your C: or D: drive? If it is on C: then "mysite" > should also be on C: > > On Thursday, 03 May, 2018 03:25 PM,

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Gerald Brown
Is Django installed on your C: or D: drive?  If it is on C: then "mysite" should also be on C: On Thursday, 03 May, 2018 03:25 PM, Daisy wrote: I tried what you suggested and got this: D:\projectdir>python create_dir.py Traceback (most recent call last):   File "create_dir.py", line 1, in    

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Daisy
I tried what you suggested and got this: D:\projectdir>python create_dir.py Traceback (most recent call last): File "create_dir.py", line 1, in from os import mkdirs ImportError: cannot import name 'mkdirs' среда, 02. мај 2018. 23.13.29 UTC+2, Daisy је написао/ла: > > I installed django

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury' via Django users
On 03/05/18 06:59, Daisy wrote: Thank you very much for your reply, and here I my answers:   * Does the directory show up when you do a *dir* command in projectdir ? It does not show up, although it says that there are 2 directories (see attachment). Those two directories '.' & '..' are

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-02 Thread Daisy
Thank you very much for your reply, and here I my answers: * Does the directory show up when you do a *dir* command in projectdir ? It does not show up, although it says that there are 2 directories (see attachment). * Can you do anything on the *mysite* directory - can you rename it,

Re: need help

2018-05-02 Thread Gerald Brown
Have you tried "pip install django" without the "== 2.0.5". I think that if you do not specify a version pip will install the latest version. On Thursday, 03 May, 2018 12:46 AM, umarkamb...@gmail.com wrote: please  this is the massage i keep on getting when trying to install django.. what do

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-02 Thread 'Anthony Flury' via Django users
Lets troubleshoot: * Does the directory show up when you do a *dir* command in projectdir ? * Can you do anything on the *mysite* directory - can you rename it, or even delete it ? * Can you see it in File explorer * Can you manually create a directory in your *projectdir* ? * Can you

Re: need help

2018-05-02 Thread Aditya Singh
You're most welcome On Wed, May 2, 2018, 11:04 PM Umar Kambala wrote: > Thanks > On May 2, 2018 5:33 PM, "Aditya Singh" > wrote: > >> Try to upgrade your internet connection or set up a hotspot from a mobile >> device having a good signal

Re: need help

2018-05-02 Thread Umar Kambala
Thanks On May 2, 2018 5:33 PM, "Aditya Singh" wrote: > Try to upgrade your internet connection or set up a hotspot from a mobile > device having a good signal strength and internet speed and try again. > Should work for sure > > On Wed, May 2, 2018, 11:01 PM Umar

Re: need help

2018-05-02 Thread Aditya Singh
Try to upgrade your internet connection or set up a hotspot from a mobile device having a good signal strength and internet speed and try again. Should work for sure On Wed, May 2, 2018, 11:01 PM Umar Kambala wrote: > So wat do I do then? > On May 2, 2018 5:28 PM, "Aditya

Re: need help

2018-05-02 Thread Umar Kambala
So wat do I do then? On May 2, 2018 5:28 PM, "Aditya Singh" wrote: > Sure it is mate > > On Wed, May 2, 2018, 10:51 PM Umar Kambala wrote: > >> I believe its low connection >> On May 2, 2018 5:16 PM, "Jani Tiainen" wrote:

Re: need help

2018-05-02 Thread Aditya Singh
Sure it is mate On Wed, May 2, 2018, 10:51 PM Umar Kambala wrote: > I believe its low connection > On May 2, 2018 5:16 PM, "Jani Tiainen" wrote: > >> Looks like your machine doesn't have connection to (some parts) of >> internet for some reason, or you

Re: need help

2018-05-02 Thread Umar Kambala
I believe its low connection On May 2, 2018 5:16 PM, "Jani Tiainen" wrote: > Looks like your machine doesn't have connection to (some parts) of > internet for some reason, or you do have very slow connection. > > On Wed, May 2, 2018 at 7:46 PM, wrote: >

Re: need help

2018-05-02 Thread Aditya Singh
This has surely to do with your internet connection mate. On Wed, May 2, 2018, 10:46 PM Jani Tiainen wrote: > Looks like your machine doesn't have connection to (some parts) of > internet for some reason, or you do have very slow connection. > > On Wed, May 2, 2018 at 7:46

Re: need help

2018-05-02 Thread Jani Tiainen
Looks like your machine doesn't have connection to (some parts) of internet for some reason, or you do have very slow connection. On Wed, May 2, 2018 at 7:46 PM, wrote: > please this is the massage i keep on getting when trying to install > django.. what do i do? > > >

Re: Need Help With integrating Python Scripts with Django Frame Work

2018-04-16 Thread jacob duyon
I'm not sure how many users you have for this, but it's best practice to use an asynchronous task queue (like Celery) to run the actual powerpoint creation code. If you simply run the script inside the view it will block the response from happening. You create a celery task (which in your case

RE: Need Help With integrating Python Scripts with Django Frame Work

2018-04-16 Thread Matthew Pava
Add a new view that returns the files. Connect the “Download” button to the URL to that view. Your view should return an HttpResponse object. For instance, I use this for the user to download PDF versions of forms: response = HttpResponse(pdf_contents, content_type='application/pdf')

Re: Need Help With integrating Python Scripts with Django Frame Work

2018-04-16 Thread Larry Martell
Use ajax, e.g.: https://stackoverflow.com/questions/30456958/python-script-called-by-ajax-executed-by-django-server On Mon, Apr 16, 2018 at 3:48 PM, Balu Nanduri wrote: > Hi, > I am working on a project where I have to communicate with Tableau > server and

Re: Need Help with Many to Many Fields

2017-12-09 Thread Constantine Covtushenko
Hi Marks, Ok, I would use `prefetch_related` method then. https://docs.djangoproject.com/en/2.0/ref/models/querysets/#prefetch-related you should override `get_queryset` with something like that: def get_queryset(self, request): return

Re: Need Help with Many to Many Fields

2017-12-09 Thread Mark Phillips
should have been class CollectionAdmin(admin.ModelAdmin) in the above post. Mark On Sat, Dec 9, 2017 at 9:16 AM, Mark Phillips wrote: > Hit send by accident... > > Constantine, > > Thanks for the link and update! However, I am not sure how to make two > columns in

Re: Need Help with Many to Many Fields

2017-12-09 Thread Mark Phillips
Hit send by accident... Constantine, Thanks for the link and update! However, I am not sure how to make two columns in the CollectionsAdmin table without two functions. class CollectionAdmin(self, obj): list_display = ('get_field_1', 'get_field_2', ) def get_field_1(self, obj):

Re: Need Help with Many to Many Fields

2017-12-09 Thread Mark Phillips
Constantine, Thanks for the link and update! However, I am not sure how to make two columns in the CollectionsAdmin table without two functions. class COllectionAdmin(self, obj): list_display = On Sat, Dec 9, 2017 at 8:53 AM, Constantine Covtushenko < constantine@gmail.com> wrote: > Hi

Re: Need Help with Many to Many Fields

2017-12-09 Thread Constantine Covtushenko
Hi Mark, You should not create 2 methods. Just change that first to be like: return obj.document.all().values_list('field_1', 'field_2') With this you will get QuerySet of tuples, like I believe it should solve your problem. Also for more references about values_list, check following

Re: Need Help with Many to Many Fields

2017-12-08 Thread Constantine Covtushenko
Hi Mark, Answering on your question I would do in your `get_documents` method: return obj.document.all().values_list('title', flat=True) this will get list of all document titles. But at the same time why do you need get_documents method? How do you use it? May be it is better to optimize

Re: Need Help with Field Validation

2017-12-04 Thread Mark Phillips
I found my error after some more reading...The corrected clean_storage_file_name(self) def clean_storage_file_name(self): current_data = self.instance computed_sha256 = compute_sha256(self.cleaned_data.get("storage_file_name")) duplicates =

Re: Need help with deployment

2017-10-19 Thread sarfaraz ahmed
Yes, I moved to linux all working fine now. On Saturday, 13 May 2017 00:06:44 UTC+5:30, mohammed ferozkhan wrote: > > Hi > Problem will solved?? > If no ping me on what'sapp +91 8686962047 -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: need help in django application

2017-10-02 Thread harsh sharma
https://docs.djangoproject.com/en/1.11/topics/forms/ you can check this On Monday, October 2, 2017 at 4:55:14 PM UTC+5:30, djangor wrote: > > I m doing a project in django. I've created model classes for each form, > master tables and generated db tables from classes. Next for the >

Re: need help in django application

2017-10-02 Thread Oladipupo Elegbede
Have you checked any of the tutorials before you started this project? I know djangogirls.com did a good job on this need. You may want to check that tutorial, get something done and come back with what you think isn't right. This gets help quicker than waiting for someone to help you generate

Re: Need help formatting and incrementing a form in HTML

2017-09-26 Thread Daniel Roseman
On Monday, 25 September 2017 21:16:04 UTC+1, Zev wrote: > > So say I have data "a", "b", and "c". It would display itself as > > Object: a > > Object: b > > Object: c > > If I added d to the form, it would add > > Object: d > > What I'm hoping to do is add an increment to this so it displays

Re: Need help: webrtc signalling with django app

2017-08-24 Thread OM555
Thanks Andrew. On Wednesday, 23 August 2017 21:46:50 UTC+5:30, Andrew Godwin wrote: > > My impression was that RTC signalling was not specified or defined so apps > could do it how they wish - so you could use normal AJAX, or WebSockets, > etc. Channels doesn't have RTC support as, as far as I

Re: Need help: webrtc signalling with django app

2017-08-23 Thread Andrew Godwin
My impression was that RTC signalling was not specified or defined so apps could do it how they wish - so you could use normal AJAX, or WebSockets, etc. Channels doesn't have RTC support as, as far as I could tell, the specified parts are all browser-to-browser. Andrew On Wed, Aug 23, 2017 at

Re: Need help modifying form on intermediate page of admin action

2017-07-29 Thread Jack Twilley
I looked over those apps and I don't think they'll help with my issue. Let's say that Crate 1 has a capacity of 12 and currently holds 10 jars. If I look at the jars in Crate 2, select 3 of them, and then trigger the admin action to move the selected jars, Crate 1 should *not* be in the drop

Re: Need help modifying form on intermediate page of admin action

2017-07-29 Thread Mark Phillips
You might find one of these helpful - https://github.com/digi604/django-smart-selects https://github.com/yourlabs/django-autocomplete-light Basically, you want a "chained select" that is populated after a value is entered by the user, if I understand the problem. If you want to roll your own,

Re: Need help for defining foreign key based on value from another table

2017-06-21 Thread Kevin Yu
I just found out on Django document, there's an example that's for manytomany, using 'through' when defining the foreign key. I think this is what i need. Here's the example: from django.db import models class Person(models.Model): name = models.CharField(max_length=128) def

Re: Need help in calling dispatch on custom mixin for authorization

2017-06-15 Thread Ajat Prabha
I was able to resolve the issue. In mixins.py, .get_object() was unresolvable so I inherited from SingleObjectMixin also I had to use the id to check equality. from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import PermissionDenied from

Re: Need help in calling dispatch on custom mixin for authorization

2017-06-15 Thread Ajat Prabha
There's a typo in > if request.user.is_authenticated() and request.user is not > self.get_object().owner.user: It is > if request.user.is_authenticated() and request.user is not > self.get_object().author.user: But still, it doesn't work. Same issue persists. -- You received this message

Re: Need help in calling dispatch on custom mixin for authorization

2017-06-14 Thread Ajat Prabha
Can someone point out what is wrong in the code? -- 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

Re: Need help in Django User Model customization and authentication

2017-05-18 Thread Ajat Prabha
Thanks for the reply, Scot, I've some questions here: 1. Is setting up groups necessary if I'm creating shared UserProfile? If not, will groups be anyhow beneficial to this new setup? 2. Shall I create shared UserProfile from User? If yes, how can I handle the need for two

Re: Need help in Django User Model customization and authentication

2017-05-18 Thread Ajat Prabha
Thanks for your reply, actually I need two passwords, one being normal alphanumeric and other being PIN-based with proper validation and features provided by Django auth core. Is it possible to do that with just extending User model? On Saturday, 13 May 2017 23:59:14 UTC+5:30, Constantine

Re: Need help in Django User Model customization and authentication

2017-05-14 Thread Scot Hacker
This is a fairly common need in academia, where your users need a different set of profile fields depending on affiliation. And you always end up with edge cases where some people are simultaneously faculty and staff, or even student and faculty, etc. And those "special" people will need to

Re: Need help in Django User Model customization and authentication

2017-05-13 Thread Constantine Covtushenko
Hi Ajat, It was not clear to me why you do not use 'Extending the existing User model' approach, described here . For me it works very well in almost all cases. And if you go that way then

Re: Need help with deployment

2017-05-12 Thread mohammed ferozkhan
Hi Problem will solved?? If no ping me on what'sapp +91 8686962047 -- 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.

<    1   2   3   4   5   6   7   >