Re: Need Developers

2024-12-19 Thread Aditya Bharat
Interested On Fri, Oct 25, 2024 at 2:10 PM UJJWAL CHAUDHARY < choudharydhruv...@gmail.com> wrote: > I have some works on Website & Application, If anyone Interested please > let me know if anyone has interested. On Personal Mail > > -- > You received this message because you are subscribed to the

About Server Images and media folder

2023-06-14 Thread Aditya Desle
Hello Everyone, I have a React + Django App. Deployed on digital ocean server/droplet. Everything is working fine on local system and server too. But the issue i'm facing is about images. I have multiple folder in media folder and the when i call the post request to add the images, the images d

Re: double forms

2022-05-08 Thread Aditya Priyadarshi
Write the get_context_data like this ``` def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['second_form'] = self.second_form return context ``` On Friday, 6 May 2022 at 21:42:07 UTC+5:30 andycod...@gmail.com wrote: > Hi I'm trying to put two for

When is provide custom ip like python manage.py runserver cannot login or signup

2021-08-30 Thread Aditya Bohra
Please help on localhost or 127.0.0.1:8000 everything is working fine but when i provide ip and port authentication is doesn't work -- 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 i

Re: Required Django programmers for HR Portal project

2020-06-29 Thread Aditya Jawale
Interested On Mon, 29 Jun, 2020, 7:42 PM srinivasan narasiman, < srinivasannarasi...@gmail.com> wrote: > Dear sir > Yes i am interested. > > On Sun, Jun 28, 2020 at 1:27 AM maninder singh Kumar < > maninder.s.ku...@gmail.com> wrote: > >> Dear group subscribers, >> >> I require Django programmers

Re: Project Collaboration Team

2020-06-24 Thread Aditya Jawale
Interested On Tue, 23 Jun, 2020, 9:45 AM Shubhanshu Arya, wrote: > Hello Everyone, > I want to make a team in which we will make some very good level projects > together. These projects will be very helpful in our interview as well. > Must have prior knowledge about Django/Python. We will do dai

Re: Required Python Django developers

2020-06-06 Thread Aditya Jawale
*Yes I am Interested* On Saturday, June 6, 2020 at 8:39:37 PM UTC+5:30, maninder singh Kumar wrote: > > Dear all, > > We require python django developers for a HR project. Please answer to > maninde...@gmail.com if interested. > > regards > Willy > -- You received this message because you ar

Re: Django Channel Demo Error From its site

2020-04-29 Thread Aditya Bohra
To view the stacktrace is used faulthandlers so that segmentation fault can be removed I followed the tutorial on django channel site which has link: https://channels.readthedocs.io/en/latest/tutorial/part_2.html import channels.layers from asgiref.sync import async_to_sync print("running")

Re: Django Channel Demo Error From its site

2020-04-29 Thread Aditya Bohra
aioredis==1.3.1 asgi-redis==1.4.3 asgiref==3.2.0 async-timeout==3.0.1 attrs==19.3.0 autobahn==20.4.3 Automat==20.2.0 cachetools==4.0.0 certifi==2019.11.28 cffi==1.14.0 channels==2.4.0 channels-redis==2.4.2 chardet==3.0.4 constantly==15.1.0 cryptography==2.9.2 daphne==2.5.0 Django==2.2.6 google-api-

Re: Django Channel Demo Error From its site

2020-04-29 Thread Aditya Bohra
This is output of pip freeze aioredis==1.3.1 asgi-redis==1.4.3 asgiref==3.2.0 async-timeout==3.0.1 attrs==19.3.0 autobahn==20.4.3 Automat==20.2.0 cachetools==4.0.0 certifi==2019.11.28 cffi==1.14.0 channels==2.4.0 channels-redis==2.4.2 chardet==3.0.4 constantly==15.1.0 cryptography==2.9.2 daphne==2

Re: Foriegnkey problem while saving data

2020-04-29 Thread Aditya Bohra
Can you please send more detail like 1 models 2 Query you are using -- 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.

Django channel async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'}) error

2020-04-29 Thread Aditya Bohra
In Python shell as per directed on django channel site https://channels.readthedocs.io/en/latest/tutorial/part_2.html#enable-a-channel-layer $ python3 manage.py shell>>> import channels.layers>>> channel_layer = channels.layers.get_channel_layer()>>> from asgiref.sync import async_to_sync>>> a

Django Channels

2020-04-29 Thread Aditya Bohra
I followed the tutorial on django channel site which has link: https://channels.readthedocs.io/en/latest/tutorial/part_2.html import channels.layers from asgiref.sync import async_to_sync print("running") channel_layer = channels.layers.get_channel_layer() async_to_sync(channel_layer.send)('

Django Channel Demo Error From its site

2020-04-29 Thread Aditya Bohra
I am trying to start with channels but the demo in python shell is not working properly:https://channels.readthedocs.io/en/latest/tutorial/part_2.html#enable-a-channel-layer Its is showing some thing like this : (InteractiveConsole) >>> import channels.layers >>> channel_layer = channels.layers.g

Re: Reg: Django signal not working

2020-04-20 Thread Aditya Singh
What's the original issue please, seems like you picked things up with someone till this email. Regards, Aditya On Mon, Apr 20, 2020, 3:11 PM 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > -+c Hello Jorge, > > After doing some resear

Re: new to django

2020-03-01 Thread Aditya Khatwa
Congratulations 1st step completed a 100 more to go.😅 On Sun, 1 Mar 2020, 23:55 Omkar Parab, wrote: > Here's the Perfect Django tutorial. > From development to production. > > https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p > > On Sun, Mar 1, 2020, 11:33 PM Gurjot K

Re: Study and project partner(s) needed

2020-02-16 Thread Farid Aditya
hey i'm from Indonesia, I'm interested to join learning wit this group On Friday, February 14, 2020 at 11:16:13 PM UTC+7, Akorede Habeebullah wrote: > > Hi guys, > > I've been learning Django on a solo for a while now and I'm really in need > of a Programmer friend/partner who we can always le

Re: Django blog post not linking to detail.html page

2020-01-25 Thread Aditya Khatwa
Django 2 by example is pretty good book when it comes to understand django If you are having some problems then I suggest you go through the same project in your case blog post again and try to match it with your code syntax most likely you are going to find the problem you are facing. On Sun,

Re: Jinja pattern doesnt work inside a for loop

2020-01-25 Thread Aditya Khatwa
Use custom templates tag instead doing it directly... make a function stating your {% query_set %} and then use it inside the template. On Sat, 25 Jan 2020, 18:29 Jani Eric, wrote: > thanks bro > > > On Saturday, January 25, 2020 at 3:11:33 PM UTC+5, Chinmay Dali wrote: >> >> I am trying to loo

Re: How to I create download link of some file using django

2020-01-23 Thread aditya surana
What if i don't want to add this additional feature?. On Monday, June 24, 2019 at 6:44:22 PM UTC+5:30, Nishant Boro wrote: > > You can use this simple module: > > https://github.com/nishant-boro/django-rest-framework-download-expert > > This module provides a simple way to serve files for download

Re: Got an interview, need some idea for projects.

2020-01-23 Thread Aditya Khatwa
Create a small website that shows your own portfolio such as your project listing etc can be done in 3-5 days. Add a form as well if you want. Focus on the dynamic aspect rather than its aesthetic for a faster result... On Thu, 23 Jan 2020, 12:41 Jack Lin, wrote: > > > Hi Django users, I'm J

Re: DRF with Rich Text

2019-08-20 Thread Aditya Singh
need strong authentication. Hope, I could be of some help, Kind regards, Aditya On Wed, Aug 21, 2019, 9:11 AM Yoo wrote: > Hi, I'm gonna be using Django Rest Framework for API with a Postgres stack > and not developing with website. Coding apps in Swift and Androidx Java. > Users

Re: annotate sum many record

2019-06-02 Thread Aditya Singh
Hello mate, Simple get the value from the objects and store in separate variables. Then you may do any and as many calculations you want and return the desired value :) Kind Regards, Aditya On Mon, Jun 3, 2019, 12:18 PM carlos wrote: > Hi, i used django 1.11 and try used annotate > &g

Re: having probem with using signal with channels in django

2019-05-24 Thread Aditya Bohra
i am talking about channels(websocket) can they be connected to postman they main problem is that i need to create real time app like real time dashboard which update the data as soon as there is any crud event occurs in db -- You received this message because you are subscribed to the Google

Re: having probem with using signal with channels in django

2019-05-24 Thread Aditya Bohra
can i use postman for websocket? I am trying to create a real time dashboard using channels -- 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

Re: having probem with using signal with channels in django

2019-05-24 Thread Aditya Bohra
Text format and in local ip -- 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 djang

having probem with using signal with channels in django

2019-05-24 Thread Aditya Bohra
Not able to send real time data to client when a post signal is generated -- 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.

Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread Aditya Singh
Kindly type python3 in the terminal and let me know the output :) On Tue, Apr 30, 2019, 6:10 PM James wrote: > I downloaded the file from the python website and went through the entire > installation process... accepting all of the default values. However, when > I went to my Terminal window an

Re: Regarding internship opportunity in Bangalore

2019-03-29 Thread aditya singh
Hi Akash I would also like to apply for the summer internship programme On Fri, Mar 29, 2019, 13:20 sachin thakur wrote: > Hi Akash > Yes I have sent you my resume I would request you to give me a call I have > mentioned the reason in resume email > > On Fri 29 Mar, 2019, 12:41 AM Akash Puranda

Re: Looking for a Django Co-Founder.

2019-01-22 Thread Aditya Singh
No thanks On Jan 23, 2019 10:10 AM, "Zack Amaral" wrote: @Amitesh What's your email, I don't want to call internationally at the moment. I can call you on zoom, skype or whatsapp. Let me know what works for you. Cheers, Zack On Tue, Jan 22, 2019 at 5:45 AM 'Amitesh Sahay' via Django users <

Is Microsoft Visual Studion 2017 Environment is good for Django development ?

2019-01-19 Thread Django Geek Aditya
I am a beginner in Django. Is Microsoft Visual Studio will be a better environment to start with django from basics. They are providing a detailed help on their website LINK

Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-18 Thread Django Geek Aditya
I'm using Windows 10 On Friday, January 18, 2019 at 8:39:08 AM UTC+5:30, kannamshivakumar417 wrote: > > Can you tell which os ur using. > > On Fri 18 Jan, 2019 12:48 am Django Geek Aditya wrote: > >> Shell Output after entering command is >> PS E:\todo>

Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-18 Thread Django Geek Aditya
> > .\scripts\activate.bat is also not working > > THE SHELL OUTPUT IS -> PS E:\todo> .\Scripts\activate.bat .\Scripts\activate.bat : The term '.\Scripts\activate.bat' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a p

Re: Matching query does not exist

2019-01-18 Thread Aditya Singh
😃 On Jan 18, 2019 3:19 PM, "Kasper Laudrup" wrote: Hi Ivan, On 1/18/19 10:25 AM, Ivan Martić wrote: > Hi all, > i am having trouble to get this query on db table right. > I am always getting error. > In your definition of the Material model, the materialid field is defined like this: mater

problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread Django Geek Aditya
Shell Output after entering command is PS E:\todo> . \Scripts\activate . : The term '\Scripts\activate' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

please my css file is not reflecting on mine page .the css file failed to load from mine base.html file

2018-11-20 Thread Aditya Bohra
Is* -- 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 django-users@googlegroups.com

please my css file is not reflecting on mine page .the css file failed to load from mine base.html file

2018-11-20 Thread Aditya Bohra
I static configured correctly -- 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 dja

Fwd: Setting up admin in visual studio

2018-11-11 Thread Aditya Bohra
In urls.py from app_name.views import blog -- 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

Re: Create Follow model

2018-11-09 Thread Aditya Bohra
I only inherited the Django user model to create my own and I saw that we can use "self" in relationship but cant figure out which one to use -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Re: Create Follow model

2018-11-09 Thread Aditya Bohra
I need to let a user follow other user -- 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 e

Re: Create Follow model

2018-11-09 Thread Aditya Bohra
On Friday, November 9, 2018 at 3:53:54 PM UTC+5:30, Aditya Bohra wrote: > > I am having problem Creating follow model . > This is to be used with django user model > I want to implement follow method like in twitter so how to implement that in django models -- You received

Create Follow model

2018-11-09 Thread Aditya Bohra
I am having problem Creating follow model . This is to be used with django user model -- 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...@g

Re: new to django

2018-10-24 Thread Aditya Bohra
On Thursday, October 18, 2018 at 2:51:02 PM UTC+5:30, shubham...@gmail.com wrote: > > "django-admin startproject mysite" i tried to run this in cmd propmt but it > is not working showing "django-admin' is not recognized as an internal or > external command," what to do? > > Is it working n

Re: User Signup ??

2018-10-02 Thread Aditya Singh
My sincere apologies mate but I try to help out people I can in this official Django chat thread/group only. Hope you understand. Kind Regards, Aditya On Tue, Oct 2, 2018, 5:11 PM Idowu Tunde wrote: > Please let take this great group to WhatsApp please > > On Tuesday, October 2, 201

Re: User Signup ??

2018-10-02 Thread Aditya Singh
Very good evening mate, You need to create a form and from one of your views create a new Object inside django user model using the username and password from the form fields that you will use for registering the users. Kind Regards, Aditya On Tue, Oct 2, 2018, 5:00 PM Vikas Sri wrote: > He

Re: [SOLVED] primary key auto increment with PostgreSQL and non Django standard column name

2018-08-06 Thread Aditya Sangam
Naoko I ma facing the problem of updating primary key automatically in django with postgresql database Could you please suggest what need to be done. Do we need to create a sequence for the table to achieve this. Hoping for your reply On Sunday, May 29, 2011 at 8:32:45 PM UTC+5:30, Nao

Django template cheat sheet or ebook

2018-07-29 Thread aditya gupta
Can anyone tell me where I can find Django template cheat sheet or ebook. -- 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.c

display my images available in one class using another class in webpage

2018-07-22 Thread aditya gupta
My Code : class Gallery(models.Model): GameName=models.CharField(max_length=40) D_text=models.CharField(max_length=50) Gime=models.ImageField(upload_to='media/',null=True,blank=True) class Assassin(models.Model): Gimage=models.ImageField(upload_to='media/assassin',null=True,blank=Tr

display my images available in one class using another class in webpage

2018-07-21 Thread aditya gupta
my Code : class Gallery(models.Model): GameName=models.CharField(max_length=40) D_text=models.CharField(max_length=50) Gime=models.ImageField(upload_to='media/',null=True,blank=True) class Assassin(models.Model): Gimage=models.ImageField(upload_to='media/assassin',null=True,blank=T

Re: Is it possible to create models inside a database model

2018-07-10 Thread aditya gupta
e to in a RDBMS sense. > > On Tuesday, July 10, 2018 at 11:30:00 AM UTC-6, aditya wrote: >> >> I am using CBVs in model.py file and FBVs in views.py file. >> As in image :- >> >> On Tue, Jul 10, 2018, 10:29 PM Alexander Joseph >> wrote: >> >&

Is it possible to create models inside a database model

2018-07-10 Thread aditya
I have created a model Named Gallery and set upload path to media folder and in that folder I have 15 more folders with different images. Now I want to access each folder and images present inside it using database. My question is : Is it possible to create 15 model inside an model and if possibl

Re: I am trying to create polls project as mentiioned in the django website

2018-06-18 Thread Aditya Singh
Hello mate, Since you are in the beginning stages I would suggest that you start a new project and check the urls.py again inside the project directory. If not let us know! Kind Regards, Aditya On Mon, Jun 18, 2018, 10:21 PM itsnate_b wrote: > No problem. Good luck! > > On Monday, June

Re: URL Concatenation Issue

2018-05-30 Thread Aditya Singh
For this you have provide an app inside your urls and refer to it as home:about where home is the app name and about is the page to be rendered. Also provide namespace in the urls so that the url is linked to the app name. Kind Regards, Aditya On Thu, May 31, 2018, 7:54 AM Spence Patrick wrote

Re: Error Djongo MongoDB

2018-05-17 Thread Aditya Singh
Hi mate, This is the assured solution. This is because djongo looks for active mongo connection to connect. Download mongodb for your os and fire up mongod fron bin directory. Then create a folder named data/db in root disk drive. It should then work flawlessly. Kind Regards, Aditya On Fri, May

Re: Django 2.1 alpha 1 released

2018-05-17 Thread Aditya Singh
Wow wow wow! My best and nost powerful framework in the world. Super excited for the new release! Kind Regards, Aditya On Fri, May 18, 2018, 6:45 AM Tim Graham wrote: > We've made the first release on the way to Django's next major > release, Django 2.1! With about two and a h

Re: what best for ecommerce project

2018-05-06 Thread Aditya Singh
Sorry mate that I created for one of clients and according to the agreement I cannot share the code and resources related to the project. Kind Regards, Aditya On Sun, May 6, 2018, 8:07 PM Ruhia gr wrote: > yes please adithya share your ecommerce project here > > On Sun, May 6, 2018 at

Re: what best for ecommerce project

2018-05-06 Thread Aditya Singh
Exactly mate! On Sun, May 6, 2018, 12:39 PM Ruhia gr wrote: > cool so you all are prefer me using django for ecommerce right > > On Sun, May 6, 2018 at 12:26 PM, Aditya Singh > wrote: > >> Hi mate, >> I have myself built a full stack ecommerce store using django a

Re: what best for ecommerce project

2018-05-05 Thread Aditya Singh
t;>> >>> On Sun, May 6, 2018 at 9:31 AM, Ruhia gr wrote: >>> >>>> wether its possible to built ecommerce project using django cms? >>>> >>>> On Sun, May 6, 2018 at 11:52 AM, Aditya Singh < >>>> adityasingh222...@gmail.com>

Re: what best for ecommerce project

2018-05-05 Thread Aditya Singh
Django is best mate. That way you are not limited by the features provided by django-cms. On Sun, May 6, 2018, 11:33 AM Ruhia gr wrote: > hello can anyone help me with this since am new to django > > On Sat, May 5, 2018 at 10:50 PM, Ruhia gr wrote: > >> hello everyone m new to django and am sta

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 strength and

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 Sing

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 do have very slow connection. >> >> On Wed

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 PM, wrote: > >> pleas

Django with mongo

2018-05-02 Thread Aditya Singh
Kindly help me with the mist efficient and easy method of integrating mongo with django.I have tried djongo but need to expand my approach. Kind Regards, Aditya -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

[Errno 10053] An established connection was aborted by the software in your host machine

2018-05-01 Thread Aditya Vartak
This is the error im getting and cant figure out the solution PS:I dont have antiVirus installed currently and firewall is on Windows 7 PC django version=1.10.5 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: ARGPARSE ERROR

2018-04-16 Thread Aditya Singh
You need to download the latest version of django rest framework same as the version specified. If you need help on the commands let me know mate. Give it a shot it should help. Kind Regards, Aditya On Mon, Apr 16, 2018, 3:57 PM Ank wrote: > HI all , > > Installed Python 3.5 and stil

Cannot connect to 127.0.0.1 error

2017-11-02 Thread Aditya Vartak
Performing system checks... Unhandled exception in thread started by . wrapper at 0x02A52AE0> Traceback (most recent call last): File "D:\anaconda\lib\site-packages\django\db\backends\base\base.py", line 213 , in ensure_connection self.connect() File "D:\anaconda\lib\site-packages\django

Store Tabular Form Data to Database

2017-03-01 Thread Aditya Khaund
Hello, In one of my application I have a form in tabular format. I have following questions 1) How can I add a row dynamically in my form? 2) While submitting how can I process multiple tables rows in view code and insert all of them to the database via model? -- You received this message be

Re: Can someone help me to fix ForeignKey related filter issues

2016-10-01 Thread Aditya Suman Maharana
Hi, Use request.user instead of self.user. You're getting the error because SellerDashboard class has no attribute called user. The user object you need is stored as user attribute in the request parameter sent with get(). Regards, Aditya On Sunday, September 25, 2016 at 5:01:43 PM UTC

Move python loop to ORM query and fix FieldError in ORM query using Conditional Expressions

2016-08-01 Thread Aditya Saraf
Hi, I have the following models defined: from django.db import models class IssuedCard(models.Model): plan_type = models.CharField(max_length=255)# This is actually a ForeignKey apn = models.CharField(max_length=255) # This is actually a Choice # .

Would defining MultiValueDictKeyError in django.core.exceptions be a good idea?

2015-09-05 Thread Aditya Sarode
s any specific reason for declaring it in django.utils.datastructures.py Thank You, Aditya -- 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

It's that possible to modify context views from middleware?

2012-07-24 Thread yodi aditya
Hi, Is that posible to make context manipulation (in every views) before send to templates from middleware? I use Django 1.3 at this case. Eg: views.py def view_function: return render(request, templates, data) def other_function: return render(request, templates, data) Middleware w

Re: DB joining 3 tables in django admin, while searching on the primary table

2012-05-21 Thread Aditya Sriram M
Some one there can answer!? On Sunday, 20 May 2012 13:12:17 UTC+5:30, Aditya Sriram M wrote: > > Ooo.. Nice. > > Hmm.. I tried this but it failed? Can you pls correct me? > > def queryset(self, request): > result = super(CustomerAdmin, > self).queryset(r

Re: Nested Foreign Key relationships in Admin?

2012-05-20 Thread Aditya Sriram M
I too have a similar issue. Any workarounds to achieve this... On Saturday, 16 December 2006 09:52:39 UTC+5:30, Dan wrote: > > I'd like to represent foreign key relationships inside the Admin > interface when there are multiple nested one-to-many relationships. > Here's a simple example model to d

Re: How to popup a window from admin site from the admin table's cell html content?

2012-05-20 Thread Aditya Sriram M
Help please! :-| On Saturday, 19 May 2012 18:31:05 UTC+5:30, Aditya Sriram M wrote: > > I have a function like this.. > > list_display = (..,get_link_to_users, ..) > >def get_link_to_users(self, obj): > html_table = ' href="JavaScript:window.open

Re: DB joining 3 tables in django admin, while searching on the primary table

2012-05-20 Thread Aditya Sriram M
', 'middle_name' etc are properties of the 'User' model. Regards, Aditya On Sunday, 20 May 2012 07:12:54 UTC+5:30, Matt Schinckel wrote: > > You may be able to use prefetch_related to do what you want: it will all > depend upon your model structure. select_related is

DB joining 3 tables in django admin, while searching on the primary table

2012-05-19 Thread Aditya Sriram M
Hi, again, my models are Customer, Users and Devices. I would like to search by Customer and retrieve all 'select_related' rows of all the three models. Eg. like this.. Customer1 User1 Device1 Customer1 User1 Device2 Customer1 User2 Device1 Customer1 User2 Device2 etc etc.. Is this possible in

How to display a table (with full functionalities like sorting, num rows etc) within a cell?

2012-05-19 Thread Aditya Sriram M
I have an admin site with two models, Customer and Users with one-to-many relationship. Now when I display the customer in admin site, I wanted to display it's Users in a table format. Basic HTML formatted table works fine but its too rugged and not very attractive. Note: I do this by manually

How to popup a window from admin site from the admin table's cell html content?

2012-05-19 Thread Aditya Sriram M
I have a function like this.. list_display = (..,get_link_to_users, ..) def get_link_to_users(self, obj): html_table = ' My Users ' % (obj.customer_id) print html_table return html_table get_link_to_fortress_users.short_description = 'Fortress Users' get_link_t

Re: Customizing Django Admin Site

2012-05-19 Thread Aditya Sriram M
t sure if this is what you look for, and I am not sure if > allow_tags is needed > > > > > On Monday, May 7, 2012 12:41:59 PM UTC+2, Aditya Sriram M wrote: >> >> Hi All, >> >> I could successfully try the Django framework on my Oracle DB. I never >&

Customizing Django Admin Site

2012-05-07 Thread Aditya Sriram M
clicking them another admin site for limited (say 10 rows) users/devices should be opened in an inner table with its own search box. Is this possible? Any workarounds will be much appreciated.. Thnx.. Regards, Aditya -- You received this message because you are subscribed to the Google Groups

[VVIP] Displaying Tables in Admin Interface using non-foreign key

2012-05-01 Thread Aditya Sriram M
My models: * * > > *# models.py > class Model1(models.Model): > pk = models.BigIntegerField(primary_key=True) > col1 = models.IntegerField() > class Model2(models.Model): > fk = models.ForeignKey(Model1) > col1 = models.CharField(max_length=255) > # admin.py > class Model1Admin(adm

Re: Django admin site display (None) even when values are non-null/empty

2012-05-01 Thread Aditya Sriram M
Okay!! My bad.. was using the wrong function to fetch. Use fetchone() instead. On Tuesday, 1 May 2012 07:22:11 UTC+5:30, Aditya Sriram M wrote: > > > I have been trying a lot but could not make out why it happens, > > class FortressUserAdmin(admin.ModelAdmin):

Django admin site display (None) even when values are non-null/empty

2012-04-30 Thread Aditya Sriram M
like 'SCHEMA'" % obj.customer_id.customer_id property_value = connection.cursor().execute(sql_query).fetch_one() print sql_query return 1 # return "aditya" get_my_schema.short_description = 'Schema Instance' - why the colum

Re: Django help required with non foreign key relations

2012-04-22 Thread Aditya Sriram M
2012 21:30:41 UTC+5:30, akaariai wrote: > > On Apr 22, 1:31 pm, Aditya Sriram M wrote: > > File myapp/models.py has this sample code.. > > > > from django.db import models > > > > # model for 'user' table in database or

Django help required with non foreign key relations

2012-04-22 Thread Aditya Sriram M
File myapp/models.py has this sample code.. from django.db import models # model for 'user' table in database oracle_dbuser1:user class User(models.Model): . . . customerid = models.BigIntegerField() # model for 'customer' table in database oracle_dbuser2:customer # Note that there is

Re: specify Postgres encoding as unicode

2011-05-18 Thread Aditya Laghate
Thanks for your reply, will try it out on my setup :-) Cheers ThinRhino On 18 May 2011 21:26, Ernesto Guevara wrote: > Hello! > Open your pdAdminIII and create a database using UTF-8. > For aplication this is setting for your settings.py: > DEFAULT_CHARSET = 'utf-8' > FILE_CHARSET = 'utf-8' > >

Re: Many to Many...so many queries

2010-03-16 Thread aditya
ields, and adding annotations...maybe those could help speed up your query? Aditya On Mar 16, 10:37 pm, TheIvIaxx wrote: > i suppose i could, but that will be a last resort :)  What about > dropping down to raw SQL just to get the IDs: > > SELECT term_id FROM image_term WHERE image_

Re: Many to Many...so many queries

2010-03-16 Thread aditya
Is there any way you could reduce the # of images to return? Another thing you could do is cache this info so you don't have to do it multiple times. Aditya On Mar 16, 10:24 pm, TheIvIaxx wrote: > Hello all, i have a question about a certain query i have.  Here is my > model setup

Re: A bit of a modeling question

2010-03-16 Thread aditya
ALJ, In that case, I think you need multiple models, without inheritance... Aditya On Mar 16, 1:48 pm, ALJ wrote: > Hi aditya, > > I wasn't aware of the editable parameter (which means I've learnt > something) but I still don't think it will help me. > > The

Re: how can i use manage.py as a command in script file

2010-03-16 Thread aditya
Thanks for the link, that was an interesting read. On Mar 16, 9:07 am, Preston Holmes wrote: > On Mar 15, 10:27 pm, pyleaf wrote: > > > > > I want to use manage.py as a command in script file. > > e.g, > > > >> python manage.py shell > > >>from testproject.testapp.models import Testee > > >>from

Re: A bit of a modeling question

2010-03-16 Thread aditya
How will the model be used? It looks to me like what you're after is the 'editable' parameter, as in something like: class Unclassified(models.Model): name = models.CharField(max_length=50) cost = models.DecimalField(max_digits=5,decimal_places=2) class Classified(Unclassified): name = model

Re: Adding a new convenience filter 'contains_any'

2010-03-04 Thread aditya bhargava
ontains_any=t) But I'm not sure how to go about adding that new filter. Aditya On Thu, Mar 4, 2010 at 3:52 PM, Peter Herndon wrote: > On Mar 4, 2010, at 2:56 PM, aditya wrote: > > > I would like to add a new filter for models to my django build that > > can be used

Re: print statements don't show up

2010-01-09 Thread aditya
Ok, I figured it out...it turns out urls.py doesn't get executed by runserver until I actually try a url. All I needed to do was point my browser to localhost:8000, and everything worked as expected : Aditya On Jan 9, 8:10 pm, Ishwor Gurung wrote: > Hi Aditya, > > 2010/1/10 adi

Re: print statements don't show up

2010-01-09 Thread aditya
Ishwor, The print statement is actually in a core Django file. I'm trying to get familiar with Django's source code. Unfortunately my print statements dont seem to run. On Jan 9, 8:10 pm, Ishwor Gurung wrote: > Hi Aditya, > > 2010/1/10 aditya : > > > Hi, > > Has

print statements don't show up

2010-01-09 Thread aditya
Hi, Has anyone run into issues with print statements in Django? I was curious about the core Django code, so I was poking around. My way of discovering how things work is to run some print statements and see their output...But my print statements aren't being printed to the Terminal. I've got the r

Re: Beta testers for a syntax highlighting widget

2010-01-03 Thread aditya
Anyone? Limited testing will do, I just want to make sure I haven't overlooked something. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send em

Beta testers for a syntax highlighting widget

2010-01-02 Thread aditya
et: http://www.wefoundland.com/project/Django-EditArea Any takers? Aditya -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this gro

Re: A module for adding link suggestions to 404 pages

2010-01-02 Thread aditya
py instead...it would make the module *much* easier to use. At that point I would consider making the module exclusively for Django. Aditya On Jan 2, 12:26 pm, Raja wrote: > If its just for Django, then it could be simpler as the only possible > URLs (with exception to flatpages) will be from

Re: a request for some brain picking

2010-01-01 Thread aditya
rrange the "blocks", which css items they use, whether they use > lists or tables, how they implement 'nav-bars', etc. > > On Jan 1, 5:12 pm, aditya wrote: > > > Will, > > Django is much more flexible over template-based systems like > > Wordpress or T

  1   2   >