Re: Help on Django + Plotly integration

2023-03-24 Thread Jd Mehra
Create a view that will generate the Plotly chart. In the view, you can use the Plotly library to create a chart object and return it as an HTML div string. Here is an example view: from django.shortcuts import render import plotly.graph_objs as go import plotly.offline as opy from django.http

Re: Help in django. I want to upload files

2023-03-24 Thread Jd Mehra
yeah, Ryan's comment definitely makes sense On Thursday, 23 March 2023 at 20:22:17 UTC+5:30 Ryan Nowakowski wrote: > Your field is called e_resource with an underscore but you're trying to > reference it using a dash. > > > On March 22, 2023 11:40:00 PM CDT, Shubhi Pandey > wrote: >> >> the

Help in django. I want to upload files

2023-03-23 Thread Shubhi Pandey
the error is: django.core.exceptions.FieldError: Unknown field(s) (e-resource) specified for Post models.py class Post(models.Model): e_resource = models.FileField(null=True, blank=True, validators=[FileExtensionValidator( ['pdf'] ) ],

Re: Help on Django + Plotly integration

2023-03-23 Thread Praveen Kumar
Hello Kasper, I have followed following link to get portly chart: https://hackmamba.io/blog/2022/03/quickly-create-interactive-charts-in-django/ But I'm not getting end result. Please find below the structure that I have made. Please let me know if I'm missing anything. [image: Screenshot

Re: Help on Django + Plotly integration

2023-03-22 Thread 'Kasper Laudrup' via Django users
On 22/03/2023 15.29, Praveen Kumar wrote: Hi Team, I need help in implementing Plotly with Django for interactive dashboards. Please suggest. Try following this: https://googlethatforyou.com?q=plotly%20django Kind regards, Kasper Laudrup -- You received this message because you are

Help on Django + Plotly integration

2023-03-22 Thread Praveen Kumar
Hi Team, I need help in implementing Plotly with Django for interactive dashboards. Please suggest. Thanks & Regards, Praveen -- 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,

Re: help for django project

2022-10-30 Thread 'Kasper Laudrup' via Django users
Change line 37 of your frobnicater.py file from using int to string. Alternatively, if that doesn't work, consider asking a question that someone can actually answer. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users"

help for django project

2022-10-30 Thread RITIK KATIYAR
File "C:\Users\kamal\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\kamal\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File

Re: Re : Need help in django database related

2021-10-14 Thread Richard Dushime
i Think using Django u will create models then register them in admin, for saving data /registration u will create a form that will be posting data in database may be u can add in an email scripts if u want to always be aware of who has registered for an event On Wed, Oct 13, 2021 at 8:37

Re: Re : Need help in django database related

2021-10-14 Thread MR INDIA
Maybe you need to learn db relationships in django models and forms, Learn about db : https://www.webforefront.com/django/setuprelationshipsdjangomodels.html And inspect source code of this project: https://github.com/sajib1066/django-event-management Hope this helps, A fellow django

Re : Need help in django database related

2021-10-13 Thread Avi shah
I want to build an platform where admin can add events and I want end users to register for that event , so how do I save the data/registration of the user for that particular event , how can i create dynamic tables like 1 table for 1 event or is there some other logic behind it? Thanks in

Re: help with django installation

2021-08-25 Thread Kasper Laudrup
On 25/08/2021 12.42, Amor Zamora wrote: > I put them in situation. I am installing an application, on my local PC, > that uses django. Application that I installed 1 month ago and it worked > perfectly. 2 days ago I tried to install it again because I changed the > PC. and when accessing the

help with django installation

2021-08-25 Thread Amor Zamora
I put them in situation. I am installing an application, on my local PC, that uses django. Application that I installed 1 month ago and it worked perfectly. 2 days ago I tried to install it again because I changed the PC. and when accessing the functionalities it returns this error.

Re: Help me - Django and python

2021-06-22 Thread DJANGO DEVELOPER
have you removed for loop from your form? On Tue, Jun 22, 2021 at 8:33 PM DJANGO DEVELOPER wrote: > because it is necessary to write when there are no more conditions left. > > On Tue, Jun 22, 2021 at 6:31 PM avdesh sharma > wrote: > >> what will happen if I change from elif to else ? >> FYI -

Re: Help me - Django and python

2021-06-22 Thread DJANGO DEVELOPER
because it is necessary to write when there are no more conditions left. On Tue, Jun 22, 2021 at 6:31 PM avdesh sharma wrote: > what will happen if I change from elif to else ? > FYI - I checked it but still getting same error. > > On Tue, Jun 22, 2021 at 2:51 PM DJANGO DEVELOPER > wrote: > >>

Re: Help me - Django and python

2021-06-22 Thread avdesh sharma
what will happen if I change from elif to else ? FYI - I checked it but still getting same error. On Tue, Jun 22, 2021 at 2:51 PM DJANGO DEVELOPER wrote: > your index.html > > > PASSWORD > class="form-control" name="password" placeholder="Enter Password"> > > > {% if login ==

Re: Help me - Django and python

2021-06-22 Thread DJANGO DEVELOPER
your index.html PASSWORD {% if login == 'inactive' %} User Inactive! Contact Admin! {% elif login == 'invalid' %} line 32 username or password Invalid {% endif%} {% if tab_error == True %} Invalid Tab Selected {% endif %} changed index.html PASSWORD {% if

Re: Help me - Django and python

2021-06-22 Thread DJANGO DEVELOPER
by seeing your code, it seems that only the 'else' part is working. have you provided value='{{dict_key.model_password_field}} in your html input element? On Tue, Jun 22, 2021 at 12:52 PM avdesh sharma wrote: > Here is my View.py code > > from django.shortcuts import render > from django.http

Re: Help me - Django and python

2021-06-22 Thread avdesh sharma
Here is my View.py code from django.shortcuts import render from django.http import HttpResponseRedirect from django.urls import reverse from django.contrib.auth import authenticate, logout, login from django.contrib.auth.decorators import login_required from student.models import * from

Re: Help me - Django and python

2021-06-22 Thread DJANGO DEVELOPER
I think you're not returning anything in your model. On Tue, Jun 22, 2021 at 11:24 AM DJANGO DEVELOPER wrote: > can you please share your login view code? > > On Tue, Jun 22, 2021 at 10:12 AM avdesh sharma > wrote: > >> Hi All, >> >> I have an issue coming in my django code, even though the

Re: Help me - Django and python

2021-06-22 Thread DJANGO DEVELOPER
can you please share your login view code? On Tue, Jun 22, 2021 at 10:12 AM avdesh sharma wrote: > Hi All, > > I have an issue coming in my django code, even though the user id and > password is present in sqlite3 db still the user is giving '*None'* > value > user =

Help me - Django and python

2021-06-21 Thread avdesh sharma
Hi All, I have an issue coming in my django code, even though the user id and password is present in sqlite3 db still the user is giving '*None'* value user = authenticate(username=username, password=password) and I am not able to login with user and throwing this error. [image: image.png]

Re: In need of immediate help from Django community

2021-05-25 Thread Aritra Ray
Thank you for your response. It worked out perfectly. On Tue, 25 May, 2021, 4:39 am Kelvin Sajere, wrote: > Import the User model in your forms.py and use it instead of Profile. As > the error clearly states, the Profile model does not have a username field. > Django actually recommends using

Re: In need of immediate help from Django community

2021-05-24 Thread Kelvin Sajere
Import the User model in your forms.py and use it instead of Profile. As the error clearly states, the Profile model does not have a username field. Django actually recommends using the AbstractUser, or the AbstractBaseUser to extend the default User model if you wish to create something like a

Re: In need of immediate help from Django community

2021-05-24 Thread Omkar Parab
Error is in forms.py file. "model = User" not profile. Default "User" model comes with username, email filed. Why you're creating another email field in the Profile model? Just fetch it using {{ user.email }} On Tue, May 25, 2021, 1:38 AM Aritra Ray wrote: > Hi, > > I've been facing a

Re: In need of immediate help from Django community

2021-05-24 Thread Mottaz Hegaze
I think in second image ( usercreateform ) your model needs to be User not profile On Mon, May 24, 2021 at 10:08 PM Aritra Ray wrote: > Hi, > > I've been facing a problem recently in creating a Django Profile model for > an E-commerce website. > Error: FieldError(message)

Re: Looking for help installing django

2021-05-06 Thread parmeshwar deharkar
hi bro i just tell you django is very easy to install . just follow down step: check your terminal now type: python --version now run command : pip install django now make project : python django-admin startproject testproject now go to project folder: cd testproject see manage.py file in project

Re: Looking for help installing django

2021-05-06 Thread Kasper Laudrup
On 06/05/2021 20.17, Philip Pelletier wrote: > All I did was install and start django. I made no edits of any kind. I > even reinstalled python and got the same problem, > Just installing Django will not run an HTTP server and point your browser to port 8000 on your localhost, so obviously you

Re: Looking for help installing django

2021-05-06 Thread DJANGO DEVELOPER
yeah, Sharif is right. follow the official dos. if you still not understanding the flow. come back and ask again. On Thu, May 6, 2021 at 11:24 PM Sharif Mehedi wrote: > I suggest you follow the official documentation page to properly set up > for a django project. > Getting Started:

Re: Looking for help installing django

2021-05-06 Thread Sharif Mehedi
I suggest you follow the official documentation page to properly set up for a django project. Getting Started: https://docs.djangoproject.com/en/3.2/intro/ If you have trouble following the doc. Please, ask for help, and also be specific about what part of documentation you do not understand.

Re: Looking for help installing django

2021-05-06 Thread Philip Pelletier
All I did was install and start django. I made no edits of any kind. I even reinstalled python and got the same problem, On Thursday, May 6, 2021 at 1:40:29 PM UTC-4 abubak...@gmail.com wrote: > can you please explain to me that what are you trying to do? because you > have explained nothing

Re: Looking for help installing django

2021-05-06 Thread DJANGO DEVELOPER
can you please explain to me that what are you trying to do? because you have explained nothing in your question about your problem On Thu, May 6, 2021 at 10:26 PM Sharif Mehedi wrote: > Not very understandable, no useful information on your message body, only > there's an exception! > Try to

Re: Looking for help installing django

2021-05-06 Thread Sharif Mehedi
Not very understandable, no useful information on your message body, only there's an exception!Try to understand what you are doing and when you understand ask for help if you cannot solve it yet. On Thursday, May 6, 2021, 10:27:35 PM GMT+6, Philip Pelletier wrote: I get this error

Looking for help installing django

2021-05-06 Thread Philip Pelletier
I get this error message on the browser at 127.0.01:8000 Environment: Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 3.2.1 Python Version: 3.9.4 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes',

Re: Need help in django ecommerce website to simply read a variable from different apps

2021-04-13 Thread Satyajit Barik
Show me your cart item code On Tue, 13 Apr, 2021, 5:32 am Nijo Joseph, wrote: > Dear all, > > Seems interesting, reading from different tables is not a big deal just > use whatever models from any app and import into the views and run your > query. I have my own full fledged app not very good

Re: Need help in django ecommerce website to simply read a variable from different apps

2021-04-12 Thread Nijo Joseph
Dear all, Seems interesting, reading from different tables is not a big deal just use whatever models from any app and import into the views and run your query. I have my own full fledged app not very good in design but it really works and have used in some supermarkets and still continuing in

Re: Need help in django ecommerce website to simply read a variable from different apps

2021-04-03 Thread Kasper Laudrup
On 03/04/2021 01.15, ANSHIT RANSINGH wrote: > I am unable to do so. Please help me with the issue.  > If you want someone to help you, learn how to ask a question. Something like this might be a good start: https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd How do

Need help in django ecommerce website to simply read a variable from different apps

2021-04-03 Thread ANSHIT RANSINGH
Hi, I am creating a Django e-commerce website in which I have created multiple apps. I have a cart app which is for managing the cart. In addition to that I have another orders app which manages the orders. For payment integration I want to read the final price amount in orders app which is

Need Help in Django DataFrames Graph Generation

2020-06-06 Thread Balaji Shetty
Hi Can any body help me in this scenario. Please see the attached file. X axis is Date and Y Axis are Attendance of Physics , chemistry, math and English Subject Students totals. How can I pass Data from model into dataframe object. This example is Static. I want to get data Dynamically from

Need help in Django calculated field/queryset

2020-04-30 Thread Jay Prajapati
Hello everyone, Still stucked on this pointHas anyone tried 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.

Need help in Django calculated field/queryset

2020-04-18 Thread Jay Prajapati
Hello Everyone, I need a help from you. I'm learning Django and working on my own project but got stuck on a point. Your inputs will be highly appreciated. Little background: I'm creating a web app like investment portfolio. I have created a model based form to input the stock transaction i.e.

Need help in Django calculated field/queryset

2020-04-18 Thread Jay Prajapati
Hello All, Hope you are doing well! I need a help. I'm learning Django and working on my own project but got stuck on a point. Your inputs will be highly appreciated. Little background: I'm creating a web app like investment portfolio. I have created a model based form to input the stock

Re: Help with Django

2019-09-01 Thread Gil Obradors
Welcome @Elmaco7 You're in the right side! When you understand this tutorial, you will be prepared to start designing your project, with the help of thousands of more advanced online tutorials https://docs.djangoproject.com/en/2.2/intro/tutorial01/ Good luck! Missatge de Gabriel Araya Garcia

Re: Help with Django

2019-09-01 Thread Gabriel Araya Garcia
There are millions tutorials that you can read step by step. I am also new in django, but i was long six month study by myself and I've achieved build a project. El dom., 1 sept. 2019 a las 14:51, Elmaco7 () escribió: > Hello, I'm new and it's the first time that I use Django. > I should

Help with Django

2019-09-01 Thread Elmaco7
Hello, I'm new and it's the first time that I use Django. I should create a site with a database containing Students, exams and grades. Furthermore I should give the possibility to insert a student and to know how many exams he has given and also to insert an exam and know which students have

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

2019-07-05 Thread sachin thakur
I am also facing the same problem i am using PostgreSQL data base . please do share this issue bug *Thanks and Kind Regards* *Sachin Thakur*

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-28 Thread Joe Reitman
The notes say: - The exact output will vary depending on the database you are using. The example above is generated for* PostgreSQL.* Are you using the default SQLite? You could try running migrate and then checking the tables to see if the constraint was added using a DB admin viewer.

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-28 Thread Jasmine Smith
Looking into, will get back to you soon. Thanks. On Thu, Jun 27, 2019 at 8:15 PM Rudy Quiroga Gamboa wrote: > 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

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 ( >

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

2019-05-28 Thread K Tan
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 ( https://docs.djangoproject.com/en/2.2/intro/tutorial02/) and I've just added the following chunk of code to "polls/models.py". (I copied/pasted so I know it's

Re: Need urgent help on Django project

2019-05-10 Thread Phako Perez
You could use a dictionary with cities as keys and in first drop down get keys and an if condition for second where it checks first for city if nothing selected then make second disable Sent from my iPhone > On May 10, 2019, at 07:35, avdesh sharma wrote: > > Hi Django Users, > > > I have

Re: Need urgent help on Django project

2019-05-10 Thread Krystian
Hi, follow this tutorial to achieve this https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html W dniu piątek, 10 maja 2019 15:41:54 UTC+2 użytkownik Avdesh Kumar Sharma napisał: > > Hi Django Users, > > > I have a

Need urgent help on Django project

2019-05-10 Thread avdesh sharma
Hi Django Users, I have a registration form in which I wanted to enter only Indian Cities in one fields as a dropdown and their respective states in another field dropdown. Could you please help me and provide me step by step guidance how to achieve that as I am an intermediate level programmer.

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

Need Help in Django 2.1 (Over_view )

2019-03-01 Thread iakash95768
need help in Django version 2.1 regarding a project. -- 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.co

Re: help for django interview task

2019-01-31 Thread C B
Yeah, don't do this for free. Forget about the job, they just want someone to do their work for free. Think of it as a problem to solve to help you learn Django. It is the kind of thing you will need to do in the real world as a Django developer. But forget about this company, they are taking you

Re: help for django interview task

2019-01-31 Thread michael
Hi, If you do go to the effort of implementing this, you could add copyright notices for yourself and license it under the GPL v3. Take care, Michael. On Thursday, January 31, 2019 at 9:28:06 AM UTC-8, Roshan Shah wrote: > > Many such interviews are designed to dupe people. It is a new trend

Re: help for django interview task

2019-01-31 Thread Roshan Shah
Many such interviews are designed to dupe people. It is a new trend in interviewing... sadly!!! Many companies and startups when stuck with problems put out job ads(which are cheap), get resumes and give coding test to solve their problem. Hiring is not in their radar but getting code written to

Re: help for django interview task

2019-01-31 Thread Onyeka A.
I agree with this. This is a bit much for an interview, unless they'll pay for your time. That said, what you're being asked to do is rather advanced. It's a good task to use to broaden your Django skills but on your own timetable. If you still want to go ahead, I'd look up Dynamic Databases

Re: help for django interview task

2019-01-31 Thread Roshan Shah
Which company is giving you a task to build a sort of full app functionality for interview? What if you solve it and still they don’t hire you? Will they pay for your time? A small test is fine but if you going to work on something that takes you 20+ hours on a coding test, you are being taken

Re: help for django interview task

2019-01-31 Thread Mohammad Shareef M
Refer this beginners document and try - https://tango-with-django.readthedocs.io/en/latest/ Thanks & Regards, Mahammad Shareef M +919741482617 +971581756035 On Thu, Jan 31, 2019 at 3:42 PM Tim Vogt (Tim Vogt) wrote: > draw out the program first and isolatie each problem you try to solve. >

Re: help for django interview task

2019-01-31 Thread Tim Vogt (Tim Vogt)
draw out the program first and isolatie each problem you try to solve. and start at the backend. start small and increase the functions and try to grasp all. At least in abstraction what you try to do. Than start writing the functions in a recipe overview. and after the application basics are

Need Help about django-filter and dataGrid

2018-11-23 Thread DELEAU Eric
Hello I'm a new developper in django, i think my question are basic for expert but i want to know the best practice. I made a view using the package "djando-filter" *filter.py* [image: filter.JPG] *view.py* [image: View.JPG] *vue_microtrottroi.html* [image: html.JPG] *Questions :* -

Re: New member: Germano Carella. I need help with django, limit_choices_to and admin interface

2018-08-10 Thread germano carella
I found a tutorial! I studied ForeignKey and how it works with sets... Now, I'll learn how to create a form and how to save the new data in set. Thanks! Il 09/08/2018 22:59, Julio Biason ha scritto: Hi Germano, When you use "ManyToMany", you're saying "any book can have any chapter and

Re: New member: Germano Carella. I need help with django, limit_choices_to and admin interface

2018-08-09 Thread germano carella
Hi Julio, Thanks, now is clear. Ok, I created models correctly and createa book in admin interface. Now I can create chapters to add this book. Now I want to learn how to create an interface that allows an user to add a new book, click on next button and add chapters to this book that is

Re: New member: Germano Carella. I need help with django, limit_choices_to and admin interface

2018-08-09 Thread Julio Biason
Hi Germano, When you use "ManyToMany", you're saying "any book can have any chapter and vice versa". That's obviously what you don't want. What you want is "A book has a closed set of chapters". This is done by thinking a bit on the other way with Django: Instead of saying "There is a list of

New member: Germano Carella. I need help with django, limit_choices_to and admin interface

2018-08-09 Thread Germano Carella
Hi, I'm Germano from Italy. I'm new of django. Probably this discussion has many many examples, but I can't find my situation. I have two models, Book and Chapters. These are simple models, I need them only for educational purpose. class Book(models.Model):

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

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

2018-07-11 Thread gurmeetkaurjuneja23
Hi All, Me and my team will be developing our first application in Python and we will be using SQL Server as backend. I wanted to ask one query regarding the versions of Python that have been developed and the ones that are in development. If we use the current available version of the Python

need help with Django regstration redux

2018-06-16 Thread Leela Sai Madhav Manne
Iam trying develop a web application. I am using Django registration redux package for registration. when im try to access http://127.0.0.1:8000/accounts/register it automatically redirecting to http://127.0.0.1:8000/accounts/profile/ Shows me following Using the URLconf defined in

Re: Help with Django Models

2017-12-13 Thread Mike Dewhirst
On 14/12/2017 11:14 AM, Udit Vashisht wrote: Thanks for the reply. I am new to python and django. Will have to google a lot to understand your solution :-) Look at models.ForeignKey ... https://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey When you add a foreign key field to a

Re: Help with Django Models

2017-12-13 Thread Mike Dewhirst
On 14/12/2017 3:15 AM, Udit Vashisht wrote: I have an outside python function which reads a csv from web and fetch certain data in forms of tuple. So that i can use that tuple in my python models for choices in one of the fields. Till now i am running the function independently and copying the

Help with Django Models

2017-12-13 Thread Udit Vashisht
I have an outside python function which reads a csv from web and fetch certain data in forms of tuple. So that i can use that tuple in my python models for choices in one of the fields. Till now i am running the function independently and copying the returned tuple to my models.py for choices.

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

need help in django application

2017-10-02 Thread djangor
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 corresponding classes/tables, I want to create HTML forms with post data handling and after each next button in the forms that I use for submit/ moving to

help with Django tutorial "writting our first Django app" part 4

2017-07-13 Thread Rafael Valle Cabrera
Hi everyone I am getting started with Django. My doubt is about the tutorial called ‘Writing our first Django app’ For everyone who doesn’t know about it, it’s a tutorial where you start developing a polls app. I am in the part where i have to do the forms. I am doing part 4:

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

Need help in Django User Model customization and authentication

2017-05-13 Thread Ajat Prabha
Hello everyone, I'm creating a payment gateway to make transactions on my college campus go cashless. It can be used to pay library dues, stationary charges, etc. The user will add money to a central account and then he/she can use that money virtually. I chose Django because of its security.

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Xiao Bo
Thanks! 在 2016年12月10日星期六 UTC-5下午4:43:47,Avraham Serour写道: > > don't use runserver for production ever. > > read the django documentation: > https://docs.djangoproject.com/en/1.10/howto/deployment/ > > after that I suggest using nginx with uwsgi > > it is also worth reading uwsgi documentation,

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Avraham Serour
don't use runserver for production ever. read the django documentation: https://docs.djangoproject.com/en/1.10/howto/deployment/ after that I suggest using nginx with uwsgi it is also worth reading uwsgi documentation, there are a lot of options you can tweak nginx also has some options you

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Xiao Bo
Yes, I did. 在 2016年12月10日星期六 UTC-5下午3:37:17,Avraham Serour写道: > > are you using manage.py runserver? > > > On Fri, Dec 9, 2016 at 10:13 PM, Xiao Bo > wrote: > >> I'm building a Django server for data collection. However, the program >> seems not capable when the sensing

Re: Help Needed: Django Server For High Frequent Requests

2016-12-10 Thread Avraham Serour
are you using manage.py runserver? On Fri, Dec 9, 2016 at 10:13 PM, Xiao Bo wrote: > I'm building a Django server for data collection. However, the program > seems not capable when the sensing network expands. As time goes on, the > program doesn't even enter the code

Help Needed: Django Server For High Frequent Requests

2016-12-09 Thread Xiao Bo
I'm building a Django server for data collection. However, the program seems not capable when the sensing network expands. As time goes on, the program doesn't even enter the code piece and report broken pipe/connection reset by peer/too many open files errors: Exception happened during

Re: Help with django form an ajax, error 500

2016-08-21 Thread Fred Stluka
Elros Romeo, Can you see the log file?  It may show details of the 500 error, which will likely be some error reported by your Django code. Could be anything from a Python syntax error to a failed attempt to connect to a DB, to a misconfigured settings file, or

Re: Help with django form an ajax, error 500

2016-08-17 Thread Constantine Covtushenko
Sorry guys, please skip my previous post. It appeared unfinished. My correct one below. Hi Andrew, To have a proper `to_python` transformation from `POST` strings please use forms. They do that perfectly and also they can handle any king of user input validations. form =

Re: Help with django form an ajax, error 500

2016-08-17 Thread Constantine Covtushenko
Hi Andrew, To have a proper `to_python` transformation from `POST` strings please use forms. They do that perfectly and also they can handle any king of user input validations. form = SomeCustomForm(request.POST) form.is_valid(): parsed_dictionary = form.cleaned_data() As for 'Ajax'. It

Re: Help with django form an ajax, error 500

2016-08-17 Thread agapito treviño
Elros Romeo as defined by the form.as_p.? I want to implement this El viernes, 15 de julio de 2016, 18:49:00 (UTC-5), Elros Romeo escribió: > > Hi, i hope you can help me, im trying to make a django post form without > reloading the page using ajax, but im getting error 500 when submit, can

Re: Help with django form an ajax, error 500

2016-08-10 Thread Andrew Beales
Guessing this is old news, but there are 2 problems with views: ProductoConcepto.objects.create(producto=producto, orden=orden, cantidad=cantidad) - producto and orden need to be Python objects and cantidad is a float, but the request.POST values will be string representations. Also the ajax

Re: Help with django form an ajax, error 500

2016-07-16 Thread ludovic coues
The error should come with a backtrace. Providing the backtrace will help a lot in finding the error. 2016-07-15 19:52 GMT+02:00 Elros Romeo : > Hi, i hope you can help me, im trying to make a django post form without > reloading the page using ajax, but im getting error

Help with django form an ajax, error 500

2016-07-15 Thread Elros Romeo
Hi, i hope you can help me, im trying to make a django post form without reloading the page using ajax, but im getting error 500 when submit, can you help me to fix this, this is my code: *models.py* class ProductoConcepto(models.Model): producto = models.ForeignKey(Producto) orden =

Re: Help me!!! django

2016-06-30 Thread Mario Gudelj
There's a nice LDAP app for Django at https://pypi.python.org/pypi/django-auth-ldap/1.2.8 but I'm not sure if it's suitable for what you need to do. I think you need a Python LDAP module to create a connection, bind, perform a simple search and then parse the results to get those email addresses.

Help me!!! django

2016-06-30 Thread Цибарт Сергей
urgently need to fasten on the portal, which is on Django, a form https://postimg.org/image/8myn5jqnb/, but I'm new to this. Help, who than can please -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Help with django.

2016-04-19 Thread Григор Колев
сряда, 20 април 2016 г., 0:00:06 UTC+3, Григор Колев написа: > > )My question is bed. > I read docs of course. > In another's Python frameworks I must write all classes to be used more > than one time. > I make Button and it's. > If I need a button just call this class > > class

Re: Help with django.

2016-04-19 Thread Григор Колев
I apologize for the mistakes, but function for insert a code is just terrible -- 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: Help with django.

2016-04-19 Thread Григор Колев
)My question is bed. I read docs of course. In another's Python frameworks I must write all classes to be used more than one time. I make Button and it's. If I need a button just call this class class MyChoiceField(forms.Form): def __init__(self, foo_choices, *args, **kwargs):

Re: Help with django.

2016-04-19 Thread Jani Tiainen
Hi, you should start with tutorials, Django official: https://docs.djangoproject.com/en/1.8/intro/tutorial01/ Django Girls Tutorial: http://tutorial.djangogirls.org/ And finally on my list is Marina Mele's tutorial: http://www.marinamele.com/taskbuster-django-tutorial On 19.04.2016 14:23,

  1   2   3   >