Re: File handling in Django

2025-02-04 Thread Siddhaarrth S Nayyar
the best *Best Regards* *Sidhaarrth S Nayyar* R S Infomedia And Films Pvt Ltd. | WZ-79C/6, First floor, Lane no 7A, Main Bharti College Road, Virender Nagar, Janak Puri, New Delhi – 1100 058, India. +91 9811222863 (primary), 8076606202 | +91 11 25546949 | | IMDB <https://www.imdb.com/n

How to access gmail

2023-08-26 Thread TASLIMA S
email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPKCA7SkJnJmmYLqxLL%3D01cJiUyuti-s%3DAvefVX-fn1RRumtVw%40mail.gmail.com.

Re: iNTRODUCTION

2023-07-10 Thread ANOOP S PILLAI
welcome to the community, I am also in my beginning curve. Hope to learn and be industry ready with all of you. On Sun, Jul 9, 2023 at 8:24 PM Emmanuel Kasirivu Lugoloobi < ema.kasir...@gmail.com> wrote: > Hello guys im studying network systems engineering in college and > intrested in becoming a

Re: Looking for a Learning Buddy

2023-06-18 Thread ANOOP S PILLAI
Hey, i am now studing data analytics. Would like to join you. Happy to hear from you. On Sat, 17 Jun, 2023, 3:30 am John Ayodele, wrote: > Hi! It's John. > > I am currently looking for a learning buddy💡, for Machine Learning. > I have little experience in Django🕸 and I code in Python🐍. > > The

Accessing my local backend

2023-03-12 Thread Rafael J. Soteldo S.
Hi there: I'm being able to access my local backend built with django/python from Postman and react, but if I try to access it from an application built for mobiles, I get a Network error. I try to access the backend from an android device What should I set in django in order to being able to

Re: Django Guide

2023-03-06 Thread Sumangala S N
Hello any tell which documents good for django rest Framework using polls app create crud operations On Mon, 6 Mar 2023, 07:35 Sandip Bhattacharya, wrote: > There is a good guide here as well: > https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django > > > - Sandip > > On Mar 5, 202

django-formset 0.13.2 I am facing the issue  VM55:1 Uncaught (in promise) SyntaxError: Unexpected token '<', "

2023-02-10 Thread 6C40 MAHALAKSHMI S
this is my code form.py class OfficedetForm(forms.ModelForm): office_logo = fields.FileField( label="Office Logo", widget=UploadedFileInput, required=True, ) office_gender_type = forms.ModelChoiceField( queryset=OFFICE_GENDER_TYPE_CHOICE.objects.all(), widget=Selectize( placeholder="Choose Gende

Re: Beginner at Django

2023-01-27 Thread JACKSON IMMANUEL S
https://youtu.be/SIyxjRJ8VNY i am watching videos from telusko where he elaborates step by step and for extra u can search w3schools and geekforgeeks On Sunday, January 15, 2023 at 5:28:25 AM UTC+5:30 808 wrote: > Hello, > > I'm part of a fast paced, non lectured program. Which means, me and my

Re: Invite to join WhatsApp group

2022-08-06 Thread Balaji K S
Hey, There is many forums in Gmail itself. Why do you need Whatsapp Group which contains a personal mobile number? That's where these forums were great! Regards & Thanks, Balaji Ks On Fri, Aug 5, 2022 at 9:17 PM Satyajit Barik wrote: > Hey, > > Join in Whatsapp python group using the below li

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

2021-12-10 Thread ram s
when u getting this issue while deploying on pythonanywhere.com or in your localserver On Mon, Dec 6, 2021 at 8:06 PM CHANDNI SINGH wrote: > hey, > i am facing the same problem > can you please guide me on how to solve that issue ??? > > On Thursday, 16 May, 2019 at 6:38:01 pm UTC+5:30 randmw...

Re: Get data from table rows and save in database

2021-12-04 Thread ram s
use name attribute in site input tag... On Sat, Dec 4, 2021 at 3:47 PM Eugene TUYIZERE wrote: > Dear Colleagues, > > I have data in the table. I want to get the rows value and save them in > the database. How can I do this with jquery? > The table I have is like this > [image: image.png] > This

Re: Multiple Templates in single list view

2021-11-22 Thread ram s
i think u forgot to configure model, please once configure and complete check first On Mon, Nov 22, 2021 at 4:36 PM Trippy Samurai wrote: > Thanks David for the idea i appreciate it i have gone with last way of > doing things but it doesnt render anything on data > > Pls correct my code below >

Re: Multiple Templates in single list view

2021-11-22 Thread ram s
will update asap On Mon, Nov 22, 2021 at 1:22 PM David Nugent wrote: > Well, there are several ways you can deal with that. > > Probably easiest is to override get_template() and switch the template > based on whatever type of ticket you're managing or you can change the > value of self.template

Re: looking for mobile developers

2021-07-06 Thread Balaji K S
Hello, Am a flutter developer. Am interested On Mon, 5 Jul, 2021, 2:07 am Theresa Taye, wrote: > Hello guys, > > I need flutter users for a project urgently if you are interested, please > contact me. > > Best regards > > -- > You received this message because you are subscribed to the Google Gr

Re: Hiring react developers

2021-05-13 Thread Balaji K S
Hello Am also interested Regards & Thanks, Balaji Ks https://about.me/balaji_ks On Mon, May 3, 2021 at 10:41 AM vineet daniel wrote: > Hi Group, > > Any one interested in Frontend development role using react? > > Please let me know. > > -- > You received this message because you are subscrib

Rendering python file.

2021-05-06 Thread GEETHANJALI S P
Hi All, How do I run python file on clicking an Html Button? I really wanted to redirect to python file (where I have created some python visualisations) on clicking a button in home page. I tried just like how we redirect in html pages but it isn't working. Hope to hear from you soon. Thanks in

Re: Hiring for frontend developer

2021-05-03 Thread Ankita s
i am looking for that On Mon, May 3, 2021 at 8:20 AM Doang Mawar wrote: > Hello Mrek, > > Please help me out with this error. > > File "C:\Users\DoangMawarG\Desktop\mysite\book\Bookbank\urls.py", line 5, > in > path('', views.index, name='index'), > AttributeError: module 'Bookbank.views'

Re: please help me to solve this error

2021-05-02 Thread Bheemanagowda S Gowdra
sorry i am new to django and learning from youtube, i don't know what is happening while running "python manage.py runserver" On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup wrote: > Have a look here: > > > https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd > > Kind

Re: I have one doubt

2021-04-30 Thread Bheemanagowda S Gowdra
I had installed On Fri, 30 Apr, 2021, 15:17 , wrote: > Hope you have the Installed_apps setup properly. > > > > > > *From:* django-users@googlegroups.com *On > Behalf Of *Bheemanagowda S Gowdra > *Sent:* 30 April 2021 15:10 > *To:* django-users@googlegroups.c

I have one doubt

2021-04-29 Thread Bheemanagowda S Gowdra
I am knew to Django I am getting below warning unresolved import 'django.contrib' -- 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...@go

Plotly-Dash error

2021-04-05 Thread GEETHANJALI S P
Hi Guys, I'm getting an error while executing the code...Please help me if anyone is aware of dash and plotly. Thanks in advance. #code: getting error as.. Callback error updating the graph.figure import pandas as pd import dash import dash_core_components as dcc import dash_html_components as

Re: Python libraries for visualisations

2021-03-15 Thread GEETHANJALI S P
2021, 10:19 AM GEETHANJALI S P < > geethanjalisp1...@gmail.com> wrote: > >> Hi..How to build a dashboard using django and python libraries for >> creating visualisations?. Please let me know .Thanks in advance! >> >> -- >> You received this message bec

Python libraries for visualisations

2021-03-14 Thread GEETHANJALI S P
Hi..How to build a dashboard using django and python libraries for creating visualisations?. Please let me know .Thanks in advance! -- 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: Migrating a code written in flask framework to django.

2021-03-12 Thread GEETHANJALI S P
Hi.. https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/Python This is the link of flask codeI wanted to change this to django..How to do that..? On Sat, 13 Mar, 2021, 1:38 AM Kasper Laudrup, wrote: > On 12/03/2021 19.50, GEETHANJALI S P wrote: > > Suppose a p

Migrating a code written in flask framework to django.

2021-03-12 Thread GEETHANJALI S P
Hi all, Suppose a program is written in flask framework how can we convert it into django? Thanks in advance. -- 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 dja

Power BI Dashboard Embed Code Using Django.

2021-03-10 Thread GEETHANJALI S P
Hi, How to embed Report/dashboard in Power BI to a Web portal using Django? Thanks, Geethanjali. -- 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+u

Re: how to pass multiple query sets in Django

2021-02-16 Thread Anil s
ot; method. > > 👇 > > https://docs.djangoproject.com/en/3.1/topics/class-based-views/generic-display/ > > On Tue, Feb 16, 2021, 7:28 PM Anil s wrote: > >> >> Hello Everyone: >> >> Can somebody please tell me how to pass multiple query sets in Djang

how to pass multiple query sets in Django

2021-02-16 Thread Anil s
Hello Everyone: Can somebody please tell me how to pass multiple query sets in Django. Thank you for your help. -- 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 t

How to pass multiple query sets in Django?

2021-02-16 Thread Anil s
How to pass multiple query sets in Django? -- 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

question for register_model()

2020-09-05 Thread y b S
Hi all, I am currently studying Django source code, then i have one question: in registry.py, for app_config in self.app_configs.values(): app_config.import_models() import_models() uses self.apps.all_models but when this variable is filled? and when and how register_model() is

Re: DjangoProject

2020-08-12 Thread S D
Hi Desh, Welcome to Django :) Like Adam said, you should unsubscribe from the django-developers mailing list for now. That list is for people who are actually working on the Django framework itself. The django-users mailing list is the one where people who are learning to use Django communicate.

Re: Django Whats app Group

2020-08-06 Thread S K
Add me too 7026210649 On Thu, 6 Aug, 2020, 6:54 pm ALIKIN PRINTS, wrote: > Am also interested add me my no ia +25562346258 > > On Thu, Aug 6, 2020, 15:29 salla ajay wrote: > >> i am also interested .pls add me my whatsup number is 7981928765 >> >> subject:python dijago >> e -mail: sallaaj...@gm

Django and PostGIS app to Google cloud.

2020-07-28 Thread viraj s solanki
Hello, everyone, Anyone can help to push my Geodjango + PostGIS web app to host on Google Cloud? I can pay a consulting fee for the time one invest to help me. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

REUTILISER UN CITE DJANGO

2020-07-05 Thread C L A S S E 1
*BONJOUR A TOUTES A TOUS* *si je décharge un site(une application django) est ce que je peut l utiliser sur mon environnement de développement qui lui contient déjà porte un site qui existe déjà. ou je dois créer un environnement appart. si possible comment merci* -- You received t

how to use a cite in my envir django

2020-07-05 Thread C L A S S E 1
if i download a cite how to use this cite in my envir django with my cite django... sould I do an auther envir . if possible how ? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

Re: Hi

2020-06-05 Thread S K
It is not that important. If you have any specific settings in your earlier pycharm projects click on first one. Or if you have settings in separate config file locate that finally you can choose not to import anything. On Fri, 5 Jun, 2020, 11:52 am Pawan Goswami, wrote: > Please kindly help me

Re: Project available

2020-05-11 Thread S K
Its totally fine. Thanks On Mon, May 11, 2020 at 8:35 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Sorry, it would not be possible to give an internship in case you are not > in India, I would require you for maintainance later on. > > regards > willy > > > On Mon, May 11, 2020

Re: Project available

2020-05-11 Thread S K
I'm from Bangalore. On Mon, May 11, 2020 at 8:19 PM Kola Badmus wrote: > I’m interested too +2347036497792 > > Sent from my iPhone > > On 11 May 2020, at 2:43 PM, ekong, emmanuel > wrote: > > I am interested too... I can receive a mail here for acceptance > > On Mon, 11 May 2020 at 2:37 PM, sa

Re: Project available

2020-05-11 Thread S K
> [image: http://]about.me/maninder.s.kumar > <http://about.me/maninder.s.kumar?promo=email_sig> > > > > > On Mon, May 11, 2020 at 6:30 PM S K wrote: > >> It's 7026210649 >> >> On Mon, 11 May, 2020, 6:27 pm Adedotun Richard, >> wrote: >> >>&

Re: Project available

2020-05-11 Thread S K
the response. >> Is there phone number I can get in touch with you? >> >> Regs >> Willy >> >> Sent from my iPad >> >> On 11-May-2020, at 11:44 AM, S K wrote: >> >> I am interested. Would like to collaborate with you. >> >> O

Re: Project available

2020-05-10 Thread S K
I am interested. Would like to collaborate with you. On Mon, 11 May, 2020, 11:35 am maninder singh Kumar, < maninder.s.ku...@gmail.com> wrote: > Dear group members, > > I have a django project available the flowcharts of which will be up in 1 > week. Write or call if interested ? > > Willy > +91

Re:

2020-04-28 Thread Shreyas S K
Please refer the attached. On Tuesday, 28 April 2020 05:41:32 UTC+5:30, fahad rasool wrote: > > How to retrieve data from database and display on web page ,example i want > to display the details of the user on a web page which he has entered in a > form which is stored in database. > -- You

How to sort a column by Django model method using django-sortable-listview (SortableListView)?

2020-04-20 Thread Nancy Jenifer Benita S
Using *django-sortable-listview* package, I'm using *SortableListView *to sort out all the model fields. In my case, more than model fields, I want to sort it out by model method too. Models.py class Employee(models.Model): name = models.CharField() designation = models.CharField

Re: Database connection not pointing to the correct database backend

2020-02-29 Thread karthik s
Hi cam, well I solved same problem by removing virtual environment and reinstalling all the packages again. it worked for me then, I have now access to mysql database .. afterthat you have python 2.xx version pip install otherwise python3.xx version pip3 install On Sun, Mar 1, 2020 at 1:51 AM C

Django server indention

2020-02-13 Thread Sathiya S
How to format Indention in server? -- 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

Re: installation of django

2020-02-12 Thread Sathiya S
try pip install --upgrade django On Wed, Feb 12, 2020 at 1:00 PM paarull shukla wrote: > Ok so virtual environment I have to search in cmd or like google > > On Wed, 12 Feb, 2020, 12:50 PM Mehul Anshumali, < > mehulanshumali...@gmail.com> wrote: > >> Try install virtual environment and in tha

Re: Python Django Training

2020-02-02 Thread V S V Narsimha Murthy
Hi I am interested to attend the python and Django online training. Please add me as well for the training classes. Thanks in advance. On Saturday, February 1, 2020 at 7:12:52 PM UTC+5:30, Srikanth K wrote: > > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take

Re: Python Django Training

2020-02-02 Thread V S V Narsimha Murthy
Hi Everyone, I am interested to attend the python and Django training. Please add my email as well for the training classes. Thanks in advance. Regards, Narasimha Murthy On Sun, Feb 2, 2020 at 9:25 PM Maqdum Adewale wrote: > I'm interested > > On Sun, Feb 2, 2020, 3:44 PM yerri swamy > wrote

Re: Getting the first item in a dict

2020-01-27 Thread S D
#x27;m sure that there are other ways. There is certainly at least a way to > play with the iterator protocol without using "for", but it may be harder > to read. You could put break at the end of the loop above to make it more > apparent that it only runs once. > > On Mo

Getting the first item in a dict

2020-01-27 Thread S D
I have a dictionary which contains one item (“current_location”, which is a nested dict) and I would like to access that nested dict. However, I cannot use the key as the code will break if a different key is passed, e.g. “different_location”. How can I access the first item in a dictionary withou

Re: URL pattern for URL with query string

2020-01-13 Thread S D
Thanks Jason. Kind regards, - SD On Mon, Jan 13, 2020, 16:28 Jason wrote: > The url resolver does not include GET query params in a URL, you need to > add them manually after the string. > > for example > > url = > f"{reverse('weather')}/?current_location={some_value}&booking_location={an

URL pattern for URL with query string

2020-01-13 Thread S D
Hey guys. SOS please. How do I write a URL pattern for a URL like this? weather/?current_location=-33.927407,18.415747&booking_location=-32.927407,19.415747 When I do reverse(‘weather’, kwargs={‘current_location’: some_value, 'booking_ location’: another_value}) I am getting a NoReverseMatch exce

Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread S D
Hi Balaji, You can convert your web app into a PWA to gain maximum benefit. Just look it up. Data shows that PWAs are the way to go. Kind regards, - SD On Tue, Jan 7, 2020, 19:47 Balaji Shetty wrote: > Hi > > Currently i deployed application on pythonanywhere. It is online office > file man

django orm filter queryset is returning empty

2019-12-17 Thread vignesh s
django orm filter queryset is returning empty queryset and also checked in the db the data is available -- 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-u

I have two models which are associated to each other through a ForeignKey how to delete the child model object without affecting parent model object

2019-11-09 Thread Vignesh s
I have two models which are associated to each other through a ForeignKey how to delete the child model object without affecting parent model object -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: Complete book

2019-10-20 Thread V S V Narsimha Murthy
Thanks a lot for shaing the book. Really appreciate it. Best Regards, On Sat, Oct 19, 2019 at 7:36 PM ISAAC NELSON S.B. KARGBO < insbkar...@njala.edu.sl> wrote: > Try this one out > > On Sat, Oct 19, 2019, 13:47 Md Nayem Tushar wrote: > >> Have any easy and properly complete book in django? pls

Re: Widgets not working for dynamically added formset forms

2019-10-08 Thread Dmitri S.
At first I hoped not to dive in JS and mostly use django things, but ok, now I see it's not that simple. Thanks for help. вторник, 8 октября 2019 г., 16:49:08 UTC+3 пользователь lemme smash написал: > > okay, i think i got it. you probably need to provide some snippet to > reload list of choice

Re: Widgets not working for dynamically added formset forms

2019-10-06 Thread Dmitri S.
I meant, when I click on Select2 widget (combobox with autocomplete), list of items does not show up. And when I click on calendar icon, calendar does not show up. "It's better to use pure js" - what do you mean exactly? to make new forms duplicating existing rather than using django empty_form

Re: Widgets not working for dynamically added formset forms

2019-10-06 Thread Dmitri S.
I meant, when I click on Select2 widget (combobox), list of items does not show up. And when I click on calendar icon, calendar does not show up. "It's better to use pure js" - what to you mean exactly? воскресенье, 6 октября 2019 г., 17:42:49 UTC+3 пользователь lemme smash написал: > > okay, b

Re: Widgets not working for dynamically added formset forms

2019-10-04 Thread Dmitri S.
and after clicking on widgets also no errors пятница, 4 октября 2019 г., 17:58:22 UTC+3 пользователь Dmitri S. написал: > > Unchecked runtime.lastError: The message port closed before a response was > received. in Opera after page loading for the first time and no errors in > Chrome

Re: Widgets not working for dynamically added formset forms

2019-10-04 Thread Dmitri S.
Unchecked runtime.lastError: The message port closed before a response was received. in Opera after page loading for the first time and no errors in Chrome. When I add new form no other errors appear. пятница, 4 октября 2019 г., 10:41:58 UTC+3 пользователь lemme smash написал: > > and you have n

Widgets not working for dynamically added formset forms

2019-10-01 Thread Dmitri S.
I have a formset with fields with Select2 widgets and a calendar (date-picker) from django app. And I use dynamic addition of formset forms. When I render a template for the first time, all widgets work fine. *But when I add new formset form, widgets of this new form don't work.* I think, th

django.core.exceptions.ImproperlyConfigured DJANGO_SETTINGS_MODULE

2019-09-18 Thread Brad S
I am trying to get a new server up and running and I am make a n00b error somewhere. django.core.exceptions.ImproperlyConfigured: Requested setting MIDDLEWARE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure()

Re: Error installing Django

2019-09-09 Thread achyuth n s
Hello Try installing using sudo in Linux based machines or in admin mode in Windows. Hope it helps. On Mon, 9 Sep 2019, 17:03 Milind Chilakwad, wrote: > I am trying to install Django 2.1 and above but everytiime I get an Error > 13 - Which says "I do not have permission to a file *.txt.gz". I a

iss api

2018-11-18 Thread gokul s
hi i want create model that get the longitude and lattitude for International Space Station and plot the longitude and lattitude on map so that we can track the live location on map.i have wrote function to receive lattitude and longitude but i dont know how to plot it with map. -- You receiv

Using a ressource amongst several uwsgi processes

2018-06-18 Thread s . baumgarten . berlin
Hi all, I am building a chatbot right now and am initiating the 'chatbot-agent' globally in the views.py, so that it wouldn't have to be loaded/initiated for each API request. *#global variable in views.py:* *agent = Agent.load('/usr/src/app/models/current/dialogue', interpreter='/usr/src/app/

migrate doesnt work

2018-03-25 Thread nauj p. s.
Hi! I'm starting to use Django 1.8 with the firebird backend. I have created my models.py with inspectdb, so I have the database already created. Put the primary keys in the models. When I try to do migrate django crashes with a exception that says conversion error of a string, seems a curre

Re: Disable Auth on Django Application.

2017-11-15 Thread Arun S
UTC+5:30, Arun S wrote: > > Hi, > > > > I have two different Django Applications. > > Both the applications have there respective Auth. > > > Applications are hosted on different servers. > > Now the use case is such that: > > > There is a redirect

Disable Auth on Django Application.

2017-11-13 Thread Arun S
Hi, I have two different Django Applications. Both the applications have there respective Auth. Applications are hosted on different servers. Now the use case is such that: There is a redirection link that can be provided from Application 1. Now i would want to disable auth on Appli

error while creating superuser

2017-09-05 Thread Sandeep S
Hi All, I am getting error when I tried to create a superuser. I am using Cassandra 3.0 with Django 1.11.4. I used this command in Pycharm: manage.py createsuperuser error: "cassandra.protocol.SyntaxException: " What am I doing wrong? -- You received this message because you are subscribe

Encapsulating Complex Business Logic in a Migraiton

2017-08-29 Thread Matt S
Standard practice is that you do not refer to "current" models (i.e. from app.models import MyModel) in a migration as the migration will break when that models changes. This means copying any model-specific code into the migration. This becomes impractical when the code needed for the migration

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread Arun S
#x27;0012_add_eval_states'), ] operations = [ migrations.RunPython(forwards, backwards), ] Does this make sense for the model structure. I do not have any Models Diagram for the same. --- Arun On Monday, August 7, 2017 at 4:13:33 PM UTC+5:30, lemme smash wrote: > &

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread Arun S
you should use text choices > > On Monday, August 7, 2017 at 6:22:50 AM UTC+3, Arun S wrote: >> >> The Models Look like this : >> >> stage_state = models.ForeignKey(EvalState, verbose_name="Eval State") >> class Bundle(AtlasAuditModel, AtlasBaseHel

Re: Drop Down Menu in Django Forms not working.

2017-08-06 Thread Arun S
30, lemme smash wrote: > > so, you can maybe show you models structure here? > also, if it is a ForeignKey, why you trying to filter qs by string values? > I mean Q(name = 'ACTIVE') > it's shouldn't work > > > On Sunday, August 6, 2017 at 5:22:21 AM UTC+3,

Re: Drop Down Menu in Django Forms not working.

2017-08-05 Thread Arun S
Yes, name is a foreign key here. -- 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 email to

Drop Down Menu in Django Forms not working.

2017-08-04 Thread Arun S
Hi, I am trying to have a drop down menu for a field in my form but seems like its not working as required. This is my form: forms.py eval_states = [ ('ACTIVE',EvalState.objects.filter(name='ACTIVE')), ('INACTIVE',EvalState.objects.filter(name='INACTIVE')), ('DELETE',Eva

Django Logger vs Logging Middleware

2017-06-26 Thread Z S
Hi, I want to log every request sent to Django. There are some posts online about logging middleware. The Django documentation talks about logger configuration and it seems that I can set it up to log everything without writing middleware. - Can I log everything without middleware? - Wh

Re: Different models in child and Parent Templates

2017-05-02 Thread jithu s jacob
e way template_name='blog/contact.html' model=Blog On Monday, May 1, 2017 at 4:50:37 PM UTC+5:30, jithu s jacob wrote: > > I am using parent template as base which has a side nav bar. the child > template keeps changing with clicking of buttons. > > My child templat

Different models in child and Parent Templates

2017-05-01 Thread jithu s jacob
I am using parent template as base which has a side nav bar. the child template keeps changing with clicking of buttons. My child template changes correctly with call to different views through the URLs. Now I want to add some data from model i the parent template irrespective of the view/mod

Re: Is it possible to write generic module?

2017-03-27 Thread Det S. Pillner
, March 27, 2017 at 3:00:58 PM UTC+2, Avraham Serour wrote: > > yes, table name can a parameter to your function > > what do you mean by "import this table"? > > On Mon, Mar 27, 2017 at 3:41 PM, Det S. Pillner > wrote: > >> Hi all, >> >> I

Is it possible to write generic module?

2017-03-27 Thread Det S. Pillner
Hi all, I work on tools for my job based on Django 1.8.17. In different projects (with different databases) I use same routine to get some data (config data). My problem is: the way is every time the same: import model, get config data from database. The difference is: model name is in every d

Re: Redirection to SSO using Django

2017-03-08 Thread Arun S
h 2017 05:26:02 Arun S wrote: > > > > > My Project, i would want to redirect login page to a SSO page. > > > and handle redirection in Django. > > > > Don't solve what others already did for you: > > https://djangopackages.org/packages/p/django-al

Re: Redirection to SSO using Django

2017-03-08 Thread Arun S
your SSO tools and how they handle passing logged in > user information to your app. > > > [1] > https://docs.djangoproject.com/en/1.10/ref/settings/#login-redirect-url > > On 08.03.2017 15:26, Arun S wrote: > > Hi, > > My Project, i would want to redirect login

Redirection to SSO using Django

2017-03-08 Thread Arun S
Hi, My Project, i would want to redirect login page to a SSO page. and handle redirection in Django. I am using Apache Server. Whats the best way to implement this ? i was reading about django - remoteusermiddleware but could'nt quite figure out how to handle the redirection. Any help is appr

Issue with Django-axes

2017-03-06 Thread Arun S
Hi, i am using django-axes package and want to lock out a user based on userid. Now there is an issue that the user gets locked out from one IP, but the same user can still login from a different IP successfully. Which negates the whole use of a security requirement of locking a particular user

Re: Having trouble with Django tutorial

2017-03-05 Thread Yves S. Garret
Yes, that did it. I placed the file into learning_python/learning_python and everything just worked. Thank you -- 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: Having trouble with Django tutorial

2017-03-03 Thread Yves S. Garret
Is this learning_python/urls.py or learning_python/learning_python/urls.py? On Friday, March 3, 2017 at 10:04:32 AM UTC-5, Vijay Khemlani wrote: > > You should import the polls urls as it appears in the tutorial > > url(r'^polls/', include('polls.urls')), >

Re: Having trouble with Django tutorial

2017-03-03 Thread Yves S. Garret
t 10:04:32 AM UTC-5, Vijay Khemlani wrote: > > You should import the polls urls as it appears in the tutorial > > url(r'^polls/', include('polls.urls')), > > On 3/3/17, Yves S. Garret > wrote: > > Like this: > > > > from dj

Re: Having trouble with Django tutorial

2017-03-03 Thread Yves S. Garret
5:47 AM UTC-5, Vijay Khemlani wrote: > > How does your learning_python.urls look like? > > On 3/3/17, Yves S. Garret > wrote: > > Yes. > > > > On Thursday, March 2, 2017 at 11:09:58 AM UTC-5, Vijay Khemlani wrote: > >> > >> Did you do this step?

Re: Having trouble with Django tutorial

2017-03-03 Thread Yves S. Garret
olls.urls')), > url(r'^admin/', admin.site.urls),] > > > On Thu, Mar 2, 2017 at 11:40 AM, Yves S. Garret > wrote: > >> Hi all, >> >> I'm going through this tutorial: >> https://docs.djangoproject.com/en/1.10/intro/tutorial01/ >

Having trouble with Django tutorial

2017-03-02 Thread Yves S. Garret
Hi all, I'm going through this tutorial: https://docs.djangoproject.com/en/1.10/intro/tutorial01/ And the problem that I'm having is when I start the 'polls' application from inside my project and then go to localhost:8000/polls, I get a 404. Page not found (404) Request Method: GET Request URL

Re: Stuck at Tutorial 1

2017-02-01 Thread Nibil M S
There is some syntax error in the file. Please ensure that your file is following python syntax. I hope you know basics of python. On Wed, 01 Feb 2017 13:17:39 +0530 Zhou Sicong wrote Hi, I tried doing exactly everything as told in Tutorial 1 (http

Re: Writing a custome Django Log Formatter.

2017-01-23 Thread Arun S
Here's an > example: > > > LOGGING = { > 'formatters': { > 'detailed': { > 'format': '%(asctime)s %(module)s %(levelname)-8s- %(some_id)s > %(message)s', > ... > }, > }, > &

Writing a custome Django Log Formatter.

2017-01-23 Thread Arun S
Hi all, I have a small issue with writing a Custom Log Formatter. By default: log_format = '%(asctime)s %(module)s %(levelname)-8s- %(message)s' This is the Log formatter being used. But only in a few cases or rather in a few modules, i would like to include for ex: "some_id&

Re: ImportError at/ No module name

2016-10-01 Thread Aravind S
; # url(r'^$', 'djangopractice.views.home', name='home'), > # url(r'^djangopractice/', include('djangopractice.foo.urls')), > > # Uncomment the admin/doc line below to enable admin documentation: > # url(r'^a

how to design URL pattern to get the field value using request.query_params.get in the view

2016-09-04 Thread Afiz S
Hi All, I have very new to Django. Can anyone tell me how to the data from URL to view. in this below example I am trying to get year param from the URL. def get_queryset(self): queryset = Battles.objects.all() year = self.request.query_params.get('year',None) if year is not None:

ImportError: No module named south

2016-05-20 Thread Priyadharshini S
When i trying to install RatticDB on ubuntu 12.04 I got this error please help me to solve ./manage.py syncdb --noinput Traceback (most recent call last): File "./manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/managem

Re: Error: ImportError: No module named south

2016-05-20 Thread Priyadharshini S
On Sunday, August 11, 2013 at 5:00:54 PM UTC+5:30, alekto.a...@gmail.com wrote: > > Hi, > am using django==1.5.1 and south==0.8.2, as well as pip-1.1-py2.7.egg > (python 2.7) > I keep getting this error: ImportError: No module named south, when I run: > sudo python manage.py syncdb. > I have

Re: Regular Expression with Variables.

2016-05-19 Thread Arun S
gex_f=r'^.*(?=.{{{MIN},{MAX}}})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!$%^&*?@#-_+=]).*$' > > But the "^.*" and the ".*$" are not needed since RegexField uses > RegexValidator, which uses re.search(). > > On Thu, May 19, 2016 at 1:53 AM, Arun S > > wrote: > >>

Re: Regular Expression with Variables.

2016-05-18 Thread Arun S
e format() on the regex, being careful to escape '{' > and '}': > > regex_f=r'^.*(?=.*{{{MIN},{MAX}}}*)(?=.*\d)(? > =.*[a-z])(?=.*[A-Z])(?=.*[!$%^&*?@#-_+=])' > regex=regex_f.format(MIN=settings.MY_RE_MIN, MAX=settings.MY_RE_MAX) > > > On Thu, May 19,

  1   2   3   4   5   6   7   8   9   10   >