Re: What should I do if I want to send `self.channel_layer.group_send` immediately?

2024-01-15 Thread sachin shende
By using self.send() after the first group_send, you ensure that the message is immediately sent, and then the subsequent messages are sent based on time.sleep... So before import asyncio ,u can write this: self.send(text_data=json.dumps({"type": "chat_message", "message": "first_chatMessage"}))

Re:

2022-09-27 Thread sachin bhagat
Hii pls add me in group +918879399361 On Tue, Sep 27, 2022, 8:11 PM Chris Adebiyi wrote: > I'm interested, you can add me via +2348161201965 > > On Tuesday, September 27, 2022, André Lewis > wrote: > >> Hi! could you add me as well, >> +18762382482 >> >> On Mon, 26 Sept 2022 at 20:45, Adolfo D

Re: Recognize Tags in templates

2021-10-28 Thread sachinbg sachin
it seems like, use curly encoded <{}> thank you sachin b.g On Thu, 28 Oct 2021 at 20:18, Keila Z. Carpio T. wrote: > Good morning, > > Hello Everybody, > > I use the tags to templates but it is being recognized for Server to show > content > > > > Please

Encrypt A Table using Django Model

2021-08-12 Thread Sachin Kumar
Hi Experts, If anyone has done encryption of table using Django. please let us know the process or any article which helps in the encryption of table data using Model and when required it decrypt the table data. Please help and Guide for a Solution. Regards Sachin -- You received this

Re: SChedule email

2021-07-01 Thread sachinbg sachin
look for the croon jobs or schedulers that may work, thank you Sachin b.g On Thu, 1 Jul 2021 at 18:45, divya murugulla wrote: > i cannot use celery suggest me something different > > On Thursday, July 1, 2021 at 6:27:51 PM UTC+5:30 aadil1...@gmail.com > wrote: > >> Use *Dj

Re: 500 - Internal server error

2021-06-19 Thread Sachin Kumar
thanks all for the help, I found the solution it was related to Web Server IIS configuration. On Sat, Jun 19, 2021 at 4:11 PM Kasper Laudrup wrote: > On 19/06/2021 10.59, Sachin Kumar wrote: > > Thanks, Kayode for the reply, > > > > it's already enabled but still c

Re: 500 - Internal server error

2021-06-19 Thread Sachin Kumar
Thanks, Kayode for the reply, it's already enabled but still can't see any details. I am really trying to fix it for the last month but not able to any help or suggestion will be highly appreciated. Please help me out. Sachin On Fri, Jun 18, 2021 at 6:32 PM Kayode Oladipo wrote: &

500 - Internal server error

2021-06-18 Thread Sachin Kumar
es successfully whatever time it takes it never gives 500 - Internal server error. I am using Windows 2016 Server and IIS Web Server. The development platform is Python 3.8, Django and PostgreSQL. Please Help me fix this issue Regards Sachin -- You received this message because you are subsc

Re: User matching query does not exist.

2021-06-12 Thread sachinbg sachin
It means that the data which you are looking for is not exists in that data base, check properly wether the searching data is exists or not, Thank you Sachin b.g On Sun, 13 Jun, 2021, 6:53 AM Nikeet NA, wrote: > There is no user with id 1. > Wrap this statement inside try catch

Re: Retreive User IP Address and other details through HTML Form

2021-06-03 Thread sachinbg sachin
When we host in server always it shows the our hosted server ip address ,not the users IP address, I tried collecting ip from the request it's giving the hosted server ip address. Thanks and regards Sachin B.G On Fri, 4 Jun, 2021, 2:16 AM Stephen olumide, wrote: > Wow...thanks for the

Best way in Django to use single API 50000 times in one go

2021-04-23 Thread Sachin Kumar
shouldn't be any load on application or server and request is completed. Thanks in Advance Sachin -- 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

Django dependent select without Ajax

2021-03-30 Thread Sachin Kumar
Hi Experts, Does anyone knows Drop down list in Django without Ajax which is faster enough to fetch data from Big DataBase. Please guide me on this. Regards Sachin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Bind device with login id and password

2021-03-05 Thread Sachin Kumar
HI Mike, Thanks a lot for the reply I can capture the hostname of the localhost i also want to capture mac address of the local host. is there any way we can capture the Mac Address of the client? On Friday, 5 March 2021 at 12:21:31 UTC+5:30 Mike Dewhirst wrote: > On 5/03/2021 4:52 pm, Sac

Bind device with login id and password

2021-03-04 Thread Sachin Kumar
then from backend we can remove his old registration and he can login into New PC. Please help me with the logic or any tutorial on this. Regards Sachin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Class-Based_views | DetailView | send_email with attachments

2021-02-16 Thread Sachin KODAD
Hello Django Users, I need help with one of my views in Django DetailView. I want to send_mail from my HTML form (post method). Requrirement: 1. HTML Form (method=post) 2. Django DetailView (send_mail with attachments) *** I have already set up my send_mail and email config in setting.py and

SonarQube and Python/Django Code Analysis

2021-01-21 Thread Sachin Kumar
Hi Experts, I am trying to do code analysis through Sonarqube. Please if anything better that SonarQube to Analysis Python/Django Code. Please advise. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Memory Leak and Solution for Django and PostgreSQL Application

2021-01-18 Thread Sachin Kumar
pls let me know the process. I had created a memory profiler for Python single file but not able to use that same in Django Application. Regards Sachin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

PostgreSQL Django Query

2021-01-07 Thread Sachin Kumar
I am using Python Django and PostgreSQL to build our report app. I am using below mention query to find some details. the query mention below is running fine in PostgreSQL command line and giving result in 2 sc for 2 million cards but when i i am try the same in Django application it is taking

Re: Project Collaboration Team

2020-06-23 Thread sachinbg sachin
i am interested On Tue, 23 Jun 2020 at 19:49, yashwanth .k wrote: > I am interested... my Medium publication on Django --- > https://medium.com/django-launcher. Regards. Looking forward to > contributing to your projects. > > On Tue, Jun 23, 2020 at 7:38 PM Desh Deepak > wrote: > >> Interested

Re: Add search to my blog app

2020-05-20 Thread sachin chaurasiya
>From which book you have had learnt django On Wed, May 20, 2020, 9:46 PM sunday honesty wrote: > Hello everyone! I have got a question. I am a Django beginner trying to > build my first web app after completing a book. > > I made an app I called developers forum where authenticated users can po

Re: Project available

2020-05-11 Thread sachin chaurasiya
I am interested 👍 On Mon, May 11, 2020, 6:59 PM Akshat Zala wrote: > I am interested. Do let me know what is to be done. > > Regards. > Akshat > > On Monday, 11 May 2020 11:36:23 UTC+5:30, maninder singh Kumar wrote: >> >> Dear group members, >> >> I have a django project available the flowchart

Re: Running into a "Cannot assign... must be a ...instance" error

2020-03-05 Thread Sachin Ranadive
Or ignore the form username field; author=request.user Sachin Ranadive On Thu, Mar 5, 2020, 8:17 PM Sachin Ranadive wrote: > Change view code, assign User object instead. > > author = User.objects.get(username=request.POST["username"]) > > Sachin > > On Thu, Mar

Re: Running into a "Cannot assign... must be a ...instance" error

2020-03-05 Thread Sachin Ranadive
Change view code, assign User object instead. author = User.objects.get(username=request.POST["username"]) Sachin On Thu, Mar 5, 2020, 4:00 AM Joey Jo Jo Jr wrote: > New to Django. > > I'm trying to set up a simple comment form where I can add a title for the > comm

Re: Unit Testing POST request

2020-02-13 Thread sachinbg sachin
Fistly for setup create use instance for setup user credentials then call that the reverse url in that post put delite On Thu, Feb 13, 2020, 8:01 PM Adam Mičuda wrote: > Hi, > or you can extract the business logic from view to some service and unit > test it instead. =) > > Regards. > > Adam > >

Re: About extending the django inbuilt user

2020-01-14 Thread sachinbg sachin
ngo-user-model-mid-project/ > > Best regards, > Carsten > > > Am 14.01.20 um 17:10 schrieb sachinbg sachin: > > Hii every one I want to add some additional fields in inbuilt django > user model am tried many of the things am not achieved that any reference > h

Re: About extending the django inbuilt user

2020-01-14 Thread sachinbg sachin
I was getting some error like is_staff is not an atribute an other source are git link I tried to fix that but am not able to do that -- 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

About extending the django inbuilt user

2020-01-14 Thread sachinbg sachin
Hii every one I want to add some additional fields in inbuilt django user model am tried many of the things am not achieved that any reference help me and any sources Git repositories Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" g

Hii floks

2019-12-24 Thread sachinbg sachin
I want only user registration and login API stuff in restframework I am not able to do login by login(request,user) Any documents are git links regarding whole user things Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: I want to know about how to implement elastic search in the python django

2019-10-03 Thread sachinbg sachin
WithShift&utm_campaign=Sent%20with%20Shift%20Signature&utm_medium=Email%20Signature&utm_content=General%20Email%20Group>* > > On Wed, Oct 2, 2019 at 5:08 PM sachinbg sachin > wrote: > >> Implimentaion of elastic search in django python how to do that any >> docum

I want to know about how to implement elastic search in the python django

2019-10-02 Thread sachinbg sachin
Implimentaion of elastic search in django python how to do that any documents demo projects 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

Re: I'm just started with Django, I'm getting this error after even following the steps provided for RHEL OS?

2019-10-01 Thread Sachin Puri
This is the error message I get when I don't specify the python version. Try this command: python3 manage.py runserver On Tue, 1 Oct 2019, 16:44 Amar Tiwary, wrote: > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from t

Re: django calendar app

2019-09-26 Thread Sachin Puri
In the case of selecting a date, you can use the SelectDateWidget or the other I have used more often is the django-bootstrap-datepicker-plus. Otherwise if you want it in the calender format for filling in details for each day you can use the django-scheduler app. On Thu, 26 Sep 2019, 20:18 Perce

Re: Maps API

2019-09-12 Thread sachinbg sachin
Use Google GPRS On Thu, Sep 12, 2019, 8:03 PM Aniket Jain wrote: > Hello guys, > Hey anyone is having idea that which API we can use for the grps tracking > system for the vechiles like Uber and ola. > > -- > You received this message because you are subscribed to the Google Groups > "Django use

Re: Staticfiles on S3

2019-09-04 Thread sachinbg sachin
Mention aws key value in setting On Thu, Sep 5, 2019, 2:06 AM mohammed habib wrote: > Did you run python manage.py collectstatic > > Are you using static template tags to heed your html link href fields > > Sent from my iPhone > > On 4 Sep 2019, at 23:06, Elias Coutinho wrote: > > Guys good aft

Re: Enter valid date error

2019-08-06 Thread sachinbg sachin
Give the format in year month date it will be resolved then On Tue, Aug 6, 2019, 10:24 PM DPM wrote: > Hey Ani, > > Change format_key = DATE_INPUT_FORMATS. > Omit the quotes. Then will work fine. > > > On Tue, 6 Aug, 2019, 11:59 AM ANi, wrote: > >> I've change the default date field widget slig

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* <https://about.me/sachin.thakur?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=th

Re: Adding Category

2019-06-03 Thread sachinbg sachin
write the post request api for the drown fields to that model On Mon, 3 Jun 2019 at 23:14, sachinbg sachin wrote: > make category like that and relate the category model as foreignkey for > model which one u neaded > > On Mon, 3 Jun 2019 at 23:13, sachinbg sachin > wrot

Re: Adding Category

2019-06-03 Thread sachinbg sachin
make category like that and relate the category model as foreignkey for model which one u neaded On Mon, 3 Jun 2019 at 23:13, sachinbg sachin wrote: > make ur category model like this > > On Mon, 3 Jun 2019 at 23:10, sachinbg sachin > wrote: > >> >> >> On

Re: Adding Category

2019-06-03 Thread sachinbg sachin
On Mon, Jun 3, 2019, 4:32 PM Aayush Bhattarai Hi, I am using Django==2.2.1 *as Class-Based View. I wanted to add a > category in a drop down and when anyone clicks it should be gone to > category.* > *What will be the best method for doing this? Follow the step of DRY. > Thanks for your Time.* > >

Re: Adding Category

2019-06-03 Thread sachinbg sachin
Use the parent child relationship in single model On Mon, Jun 3, 2019, 4:32 PM Aayush Bhattarai Hi, I am using Django==2.2.1 *as Class-Based View. I wanted to add a > category in a drop down and when anyone clicks it should be gone to > category.* > *What will be the best method for doing this? F

Re: django models

2019-05-07 Thread sachinbg sachin
On Tue, May 7, 2019, 12:35 PM Soumen Khatua Hi Folks, > > I didn't understand this code please help me to understand this code. > > class AddressQueryset(models.QuerySet): > def annotate_default(self, user): > # Set default shipping/billing address pk to None > # if default sh

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread sachinbg sachin
If u want to use that context in html means for I context ,I.user name,i.products like that u can use On Fri, May 3, 2019, 8:09 PM sachinbg sachin In JavaScript I don't know buddy > > On Fri, May 3, 2019, 6:33 PM Ravi Kumar >> Try to use ajax >> >> On Fri 3

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread sachinbg sachin
In JavaScript I don't know buddy On Fri, May 3, 2019, 6:33 PM Ravi Kumar Try to use ajax > > On Fri 3 May, 2019 5:42 pm Mayur Bagul >> Hello community, >> >> I have stored single value from database inside a variable which is >> playing role of context inside views.py function. >> >> Now I want

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread sachinbg sachin
Pass the id in context in Django by default every object has Id On Fri, May 3, 2019, 5:42 PM Mayur Bagul Hello community, > > I have stored single value from database inside a variable which is > playing role of context inside views.py function. > > Now I want to use this context(which holds sing

Re: How to ask questions on Django

2019-04-29 Thread sachinbg sachin
Am writing backend for Android app how can I send password reset link through email without using forms On Sun, Apr 28, 2019, 9:34 PM Larry Martell http://www.catb.org/~esr/faqs/smart-questions.html > > > On Sun, Apr 28, 2019 at 12:01 PM John Bagiliko < > john.bagil...@aims-senegal.org> wrote: >

Re: fesherstructural error

2019-04-09 Thread sachin thakur
Create your virtual machine in any or directory Then install the django in that virtual machine n create your project Regards Sachin Thakur On Wed 10 Apr, 2019, 12:47 AM Joseph Jones, wrote: > Hello fellow Django community members, > I seem to be having quite a bit of trouble fix

Regarding internship opportunity in Bangalore India

2019-03-31 Thread sachin thakur
8792560572 if you have any openings I can move to any city of India as far as the opportunity is concerned. I am looking for two months internship on python Django. Looking forward to hearing from you Regards Sachin Thakur -- You received this message because you are subscribed to the Google Groups

Re: Looking for a Django Intern in India

2019-03-30 Thread sachin thakur
Sorry couldn't read your mail properly. Akash sir let me know your response I have already shared my resume with you On Sun 31 Mar, 2019, 3:56 AM sachin thakur, wrote: > Right time to call you now?? > > On Sun 31 Mar, 2019, 3:56 AM DEEPAK RAGHAV, > wrote: > >> H

Re: Looking for a Django Intern in India

2019-03-30 Thread sachin thakur
Right time to call you now?? On Sun 31 Mar, 2019, 3:56 AM DEEPAK RAGHAV, wrote: > Hello Sir, > > I am also looking for internsjp in Django. > contact no:7840037929 > > Thanks & Regards, > Deepak > > On Fri, Mar 29, 2019 at 12:41 AM Akash Purandare > wrote: > >> Hello Django Developers >> >> We

Re: Regarding internship opportunity in Bangalore

2019-03-29 Thread sachin thakur
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 Purandare, wrote: > Hey Sachin > > If you might be interested in Full Stack Development of a Website, please > do send me you

Regarding internship opportunity in Bangalore

2019-03-28 Thread sachin thakur
Hi Folks This email is regarding internship opportunity if there are any internship opportunity please do let me know I am already working on django also I developed web based applications using jsp servlet and hibernate. Please do let me know if any opportunity is available -- You received this

Re: Which app for minio (s3) storage server?

2019-03-22 Thread sachinbg sachin
He how can I integrate otp attentication to my mobile app On Mar 22, 2019 8:19 PM, "guettli" wrote: > Up to now all my projects worked with the basic file storage. > > Now I want use a s3 like storage server for the first time. > > The server implementation will be minio (not aws) > > I see three

Re: Problems with first program

2019-03-04 Thread sachin thakur
product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> *Sachin Thakur* about.me/sachin.thakur <https://about.me/sachin.thakur?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> *PG Student* Dept. of C

Re: Problems with first program

2019-03-04 Thread sachin thakur
product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> *Sachin Thakur* about.me/sachin.thakur <https://about.me/sachin.thakur?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> *PG Student* Dept. of C

While Trying to Upload Multiple Files Using Single Form Field with Django Model Form Why i am getting Error no 13.Permission Denied …?

2019-03-03 Thread Sachin Cse
*I found some diififculty to write details here so i given link of my question here https://stackoverflow.com/q/54967840/11143159 * -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

Re: “python -m django --version” 1.11.18 Cannot update to 2.1

2019-02-10 Thread sachin thakur
Uninstall the 1.11.18 and install 2.1 On Mon 11 Feb, 2019, 9:08 AM JP Smith I know that you are new so, I don't want to overwhelm you. One thing that > you might want to look into is pip, which is a package management tool for > python. This will allow you to install python packages and keep t

Re: not able to run project once again

2019-02-09 Thread sachin thakur
Thank you for support ! Start running On Sat 9 Feb, 2019, 8:02 PM mahesh boini Check your pipenv file whether django is available or not > > On Sat, 9 Feb 2019 at 19:57, sachin thakur > wrote: > >> Yaa m running >> In virtual environment >> M not able to run t

Re: not able to run project once again

2019-02-09 Thread sachin thakur
Yaa m running In virtual environment M not able to run the server as far as this error wont go On Sat 9 Feb, 2019, 7:56 PM mahesh boini Bro I think that’s because of virtuvalenv isssue . Have you running your > project in virtuavalenv check once. > > On Sat, 9 Feb 2019 at 19:48, sach

not able to run project once again

2019-02-09 Thread sachin thakur
Traceback (most recent call last): File "manage.py", line 8, in from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "manage.

Re: how to convert django query objects in blow formal json

2018-08-08 Thread SACHIN CHAVAN
use Django rest framework, user serializers for converting queryset into the JSON format -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: how to convert django query objects in blow formal json

2018-08-08 Thread SACHIN CHAVAN
Did you mean to say Django queryset? right? On Wed, Aug 8, 2018 at 4:04 PM arvind yadav wrote: > > > *how to convert django query objects in blow formal js*on > > > { > title:{ > text: " march 2018 " > }, > data: [{ > type: "column", > dataPoints: [ >

Re: how-to-fix-the-field-error-issue-in-django

2018-07-16 Thread SACHIN CHAVAN
Try this Modify your urls.py file with path('/', TaskDetailView.as_view(), name='detail'), On Mon, Jul 16, 2018 at 5:47 PM, Jason wrote: > you need to provide some value in the URL to match to an instance. Detail > views say "I have this URL to a specific identifier, show the content of >

Re: Want to change home->blog to Admin home -> blog

2014-11-17 Thread Sachin Tiwari
On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I want to change Home link at admin page to Admin Home -> blog -> ... > > I tried by modifying base.html and base_site.html in my > templates/admin/, but it would wor

Re: daterange filter

2014-11-17 Thread Sachin Tiwari
On Saturday, November 15, 2014 4:47:12 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I am using below daterange filter package but it did not work if > from_date and to_date field are same, > > > https://github.com/DXist/django-daterange-filter/blob/master/da

Re: daterange filter

2014-11-15 Thread Sachin Tiwari
On Saturday, November 15, 2014 4:47:12 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I am using below daterange filter package but it did not work if > from_date and to_date field are same, > > > https://github.com/DXist/django-daterange-filter/blob/master/da

Re: Want to change home->blog to Admin home -> blog

2014-11-15 Thread Sachin Tiwari
On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I want to change Home link at admin page to Admin Home -> blog -> ... > > I tried by modifying base.html and base_site.html in my > templates/admin/, but it would wor

daterange filter

2014-11-15 Thread Sachin Tiwari
Hi All, I am using below daterange filter package but it did not work if from_date and to_date field are same, https://github.com/DXist/django-daterange-filter/blob/master/daterange_filter/filter.py Please suggest the solution I was trying by converting to_date + timedelta(days=1) but it gi

Re: Want to change home->blog to Admin home -> blog

2014-11-15 Thread Sachin Tiwari
On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I want to change Home link at admin page to Admin Home -> blog -> ... > > I tried by modifying base.html and base_site.html in my > templates/admin/, but it would not wor

Re: Want to change home->blog to Admin home -> blog

2014-11-15 Thread Sachin Tiwari
On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I want to change Home link at admin page to Admin Home -> blog -> ... > > I tried by modifying base.html and base_site.html in my > templates/admin/, but it would wor

Want to change home->blog to Admin home -> blog

2014-11-13 Thread Sachin Tiwari
Hi All, I want to change Home link at admin page to Admin Home -> blog -> ... I tried by modifying base.html and base_site.html in my templates/admin/, but it would work {% block breadcrumbs %} {% trans ' Admin Home' %} {% if title %} › {{ title }}{% endif %} {% endbl

Re: dropdown_filter in django

2014-10-21 Thread Sachin Tiwari
Hi Collin, It works when I comment the filters.py and change admin.py as below, from receivedata.filters import DropdownFilter class PersonAdmin (admin.ModelAdmin): list_filter = (PersonIdFilter) Thanks & Regards, Sachin Tiwari -- You received this message because you are subscr

dropdown_filter in django

2014-10-20 Thread Sachin Tiwari
Hi, I want to make my custom filter into drop down filter, class PersonIdFilter(SimpleListFilter): title = _('Personid') parameter_name ='personid' contlist = list(PersonInfo.objects.all()) def lookups(self, request, model_admin): lst = [] for id in self.contlist

Re: Unable to store static

2014-10-16 Thread Sachin Tiwari
Hi All Thanks for your kind support, I tried with single quotes but it also did not works, My static url is STATIC_URL = '/static/' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Unable to access view variable

2014-10-16 Thread Sachin Tiwari
Hi , I have below lines in view.py and acesssing this variable in html but not getting output, def index (request): pers = list(PersonInfo.objects.filter()) return render_to_response('index.html') html code {% for id in p

Re: Unable to store static

2014-10-16 Thread Sachin Tiwari
I used {% load staticfiles%} but it did not works. -- 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 gr

Unable to store static

2014-10-16 Thread Sachin Tiwari
Hi, I created templates and static directory in parallel with my project directory like below but only html part is visible to me css and js part are not visible, //templates/home.html //static/static/css/ //static/static/js/ html use, {% load static %} And added

Re: django UserAdmin

2014-10-08 Thread Sachin Tiwari
> > Hi Collin, > Thanks, I did some mistake, its working. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post t

Re: django UserAdmin

2014-10-08 Thread Sachin Tiwari
Hi Collin, It gives same type of error. -- 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: django UserAdmin

2014-10-08 Thread Sachin Tiwari
On Tuesday, October 7, 2014 2:16:53 PM UTC+5:30, Sachin Tiwari wrote: > > Hi, > > I added an extra field phone number in existiing user model and now I > tyring to access that field by below method, > > UserAdmin.list_display = ('email', 

Re: django UserAdmin

2014-10-08 Thread Sachin Tiwari
On Tuesday, October 7, 2014 2:16:53 PM UTC+5:30, Sachin Tiwari wrote: > > Hi, > > I added an extra field phone number in existiing user model and now I > tyring to access that field by below method, > > UserAdmin.list_display = ('email', 

django UserAdmin

2014-10-07 Thread Sachin Tiwari
Hi, I added an extra field phone number in existiing user model and now I tyring to access that field by below method, UserAdmin.list_display = ('email', 'first_name', 'last_name','is_staff', SMSRegistration.phone_no) type object 'SMSRegistration' has no attribute 'phone_no' Please help.

Re: Custom User

2014-09-30 Thread Sachin Tiwari
a new User adminclass UserAdmin(UserAdmin): inlines = (EmployeeInline, ) # Re-register UserAdminadmin.site.unregister(User)admin.site.register(User, UserAdmin) Now I want to show it with main users list page. On Tuesday, September 30, 2014 3:20:34 PM UTC+5:30, Sachin Tiwari wrote: > > H

Re: Custom User

2014-09-30 Thread Sachin Tiwari
Hi Tundebabzy, Am I asking something wrong? please help me if possible. On Tuesday, September 30, 2014 3:20:34 PM UTC+5:30, Sachin Tiwari wrote: > > Hi > > I want to display a phone number field at users list page, > > Username emailAddress FirstName LastName staffs

Custom User

2014-09-30 Thread Sachin Tiwari
Hi I want to display a phone number field at users list page, Username emailAddress FirstName LastName staffstatus PhoneNumber sachin a...@g.com sachintiwari True 000 -- You received this message because you are subscribed to

How to make a phone number field mandatory like password.

2014-09-26 Thread Sachin Tiwari
Hi I am learning django and I want to add a phone number field which would be mandatory when we use add user button in users section. I tried it with blank=False or null=False but it would not work for me. I am also using django-phone-number field package. Thanks -- You received this mes

Handle django sessions when doing file-operations

2013-12-04 Thread sachin
Hello guys, Need your help again. I m writing an app which does following file/dir operations: 1. Create a directory 2. Untar contents of some tarballs into it. 3. Do some more file operations like create a new file, open it for appending more text, finally cose it(file content varies upon per

Re: problems with django-celery

2013-07-04 Thread Sachin Shenoy
Hi Mateusz, Were you able to solve this? I am also facing the same issue. Thanks, Sachin On Tuesday, March 26, 2013 4:35:41 PM UTC+5:30, Mateusz Iwański wrote: > > Hi, > > I have a problem with django-celery. When i want to delay function I get > an error from celery worker, i

Accessing foreign key objects reversely ??

2013-05-08 Thread sachin
Hello all, Accessing the foreign key object is simple using _set lets say I have a models like: class Profile(models.Model): """ extended auth user profile """ user = models.OneToOneField(User) emp_id = models.CharField(max_length=10) phone_number = models.CharField(max_le

handling IntegrityError: Duplicate entry in UserCreationForm

2013-04-24 Thread sachin
Hello, I m extending my auth user model to add addition entries like phone numbers and emp_id. In the model I m marking both the fields as unique=True. Form generation is using UserCreationForm. But whenever I try to save same phone number or emp_id it throws *IntegrityError: (1062, "Duplicate

Re: djano user registration form and login(full example)

2013-04-17 Thread sachin
): return "%s" % self.user so how can a user gets an error message if the phone number already exist? Is there any django way to handle this?? On Wednesday, April 17, 2013 12:58:46 PM UTC+5:30, sachin wrote: > > Thanx, > > Btw, I solved it by creating an instance of

Re: djano user registration form and login(full example)

2013-04-16 Thread sachin
I m still stuck with Exception Type: IntegrityError Exception Value: column user_id is not unique Whenever I try to save, it throws the above error. I have attached files for reference, can someone help ?? On Saturday, April 6, 2013 7:07:32 PM UTC+5:30, sachin wrote: > > Thanx

Re: djano user registration form and login(full example)

2013-04-06 Thread sachin
Thanx Shawn, * * UserCreationForm really helped. Now I have a different problem, I'm trying to add custom feilds to *auth user *using storing-additional-information-about-users . But now I m getting th

djano user registration form and login(full example)

2013-04-01 Thread sachin
Hello, I'm just starting with Django. I want to create a user registration form which will take input like username, password, first and last name, email, address etc. using the same information I want to send a conformation mail to user and authenticate her/him. I have read Django docs, from

edit form cannot be generated for django comments

2012-07-03 Thread Sachin Gupta
not accept the `instance` argument. If the form cannot accept this argument, it means I cannot generate an edit form. Is there any work around? Thanks, Sachin -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on

Re: This field is required error if enctype="multipart/form-data" is not set

2012-03-21 Thread Sachin Gupta
Ok, got it Thanks Sachin -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/oif3taaCSlIJ. To post to this group, send email to dj

This field is required error if enctype="multipart/form-data" is not set

2012-03-20 Thread Sachin Gupta
In a file upload form if the enctype attribute is not set then, django throws the error - This field is required In case null=True and blank = True is set for the file field then nothing happens at all. Shouldn't it be such that django should throw some other error since we are sending a Fi

Integrating Social Auth

2011-10-24 Thread Sachin Gupta
I have been trying to integrate social-authand it has been a failure till now. I have done all the steps mentioned on this page, added the backends and the keys but it is not working. I am struggling how to get the templates working. If anyone can he

Using Django admin DateTime widget in my app

2011-10-05 Thread Sachin Gupta
that it is basically a hack and can cause problems if the widget is changed later on. Is there any feature using which I can provide the calender widget and validate the Date Time field using some Django feature? Or I will have to use some other js calender widget? Cheers Sachin -- You

Check this out

2007-07-25 Thread Sachin
Hi Everyone, I found a cool Websites which cann be a great resource to making easy money for Home Moms, kids, Students and other people who are looking for making some easy Money Online. This website talks about programmes launched by Giant companies like Amazon, Google and E-bay etc. and there