Re: Django app to PWA

2020-07-22 Thread Ryan Nowakowski
On July 21, 2020 3:36:36 PM CDT, Anirudh choudhary wrote: >Hello everyone > >can anyone share me the link how to make your webpage to Progressive >web app > >i have tried > >django-pwa and other package > It's not exactly plug n play but I like the way wq uses Django to create a PWA. https:/

Re: Campo auto incremento

2020-07-22 Thread carlos
https://docs.djangoproject.com/en/3.0/topics/db/models/#automatic-primary-key-fields On Wed, Jul 22, 2020 at 6:52 PM Velho Oeste Truck wrote: > Pessoal, estou com uma duvida, se alguém puder me ajudar. > > criei inicialmente um model sem ID, o Django então gerou a padrao...só > que estou trabalh

Campo auto incremento

2020-07-22 Thread Velho Oeste Truck
Pessoal, estou com uma duvida, se alguém puder me ajudar. criei inicialmente um model sem ID, o Django então gerou a padrao...só que estou trabalhando com Oracle 11, o Django gera esse campo como auto incremento e o Oracle na versao 11 nao comporta... Alterei minha model então, gerando minha p

Re: RES: Help me pleace

2020-07-22 Thread Nikola Tesla
Please, can you send some screenshots of the code related to your question? -- 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...@googlegr

Re: Need Help : Custom User Model

2020-07-22 Thread Exactly musty
Reach me I would give you my github repo to copy it from -- 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

Re: Need Help : Custom User Model

2020-07-22 Thread Exactly musty
Months ago I was looking for those same thing, I read the doc but wasnt clear enough I had to follow tutorials not until I learnt it, now I use it on all my project, which i added django allauth but i recommend reading this and following this tutorial, if you a newbie custom user model can be a

Need Help : Custom User Model

2020-07-22 Thread Joel T
I'm a newbie to web development and more so with the use of django. How do I create a custom user model that has additional fields for other users of my web app while keeping the default django user model for myself - mid-project. I appreciate the help. Thanks. -- You received this message bec

Re: Not found media/some.jpg

2020-07-22 Thread Mangal Is Back
there is a person who do not want that i could help you Sorrry On Wed, Jul 22, 2020 at 8:33 AM Exactly musty wrote: > delete the media folder and add image again from your admin > > > > > On Wednesday, July 22, 2020 at 3:56:35 AM UTC+1, Salima Begum wrote: >> >> Hi all, >> Here, i am using three

RES: Help me pleace

2020-07-22 Thread Samuel Nogueira
Please, can you send some screenshots of the code related to your question? De: Nikola TeslaEnviado:quarta-feira, 22 de julho de 2020 14:52Para: django-users@googlegroups.comAssunto: Help me pleace Hi, I'm trying to get the sender's email in the headers of my email (I mean my blog's contact form).

Django key/value JSON widget

2020-07-22 Thread Federico Capoano
Hey everyone, I'm looking for a key/value widget to edit a JSON flat object, like this widget here: https://django-hstore.readthedocs.io/en/latest/#django-admin-widget (I made this one a while ago, but I'm not maintaining that project anymore). But I'm having no luck in finding it, there must

Help me pleace

2020-07-22 Thread Nikola Tesla
/Hi, I'm trying to get the sender's email in the headers of my email (I mean my blog's contact form). When the visitor sends me a message through my blog's contact form, I want his email to appear in the section that says From... attach an image / /How can I set it up so that it reaches me cor

Re: Django Rest Framework

2020-07-22 Thread Shishir Jha
Did you solve it? On Wed, 22 Jul 2020, 5:10 pm mishra39076, wrote: > I wan to fetch logged-in username using request but i am not getting it in > departmentAndDesignationManagement/views.py > If anyone can help me then please suggest me. > I attached screenshots of companyRegistrationAndLoginApp

Re: Get Personal and maching Horoscope

2020-07-22 Thread Yamen Gamal Eldin
Even though that question don't belong here. but i guess you should think abt three things: 1 - get and show the data you need to/after processing " birthdays - matchers" 2 - condition on matching "Which horoscope matches with the other" 3 - how to store the data and the business rule " where to st

Re: Import csv file on django view

2020-07-22 Thread Liu Zheng
Hi, Are you sure that the file used for detection is the same as the file opened and decoded and gave you incorrect information? By the way, ascii is a proper subset of utf-8. If chardet said it ascii, decoding it using utf-8 should always work. If your file contains non-ascii UTF-8 bytes, maybe

Re: Import csv file on django view

2020-07-22 Thread Ronaldo Mata
Hi Kovy, this is not solved. Liu Zheng but using chardet(request.FILES['file'].read()) return encoding "ascii" is not correct, I've uploaded a file using utf-7 as encoding for example and the result is wrog. and then I tried request.FILES['file'].read().decode('ascii') and not work return bad data.

Re: New Comer Alert !!!

2020-07-22 Thread george kwakye addo
David, you are welcome to this wonderful django group. Let us know any problem you come along with. We are all here to help one another. THANK YOU On Tue, 21 Jul 2020 at 21:06, kyenshak david wrote: > Hello everyone, my name is David. I'm new to django. I've been doing > django for Four months n

Re: A short question:

2020-07-22 Thread Ronaldo Mata
Hi Hadisur Rahman, you can try to use selenium (web automation) or try to find an API call into DevTools > Network > XHR El mié., 22 jul. 2020 a las 11:41, Hadisur Rahman () escribió: > One of the websites we are going to scrape uses dynamic content loading > via JavaScript. How would you overcom

A short question:

2020-07-22 Thread Hadisur Rahman
One of the websites we are going to scrape uses dynamic content loading via JavaScript. How would you overcome 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 it, send an email

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Chaitanya Sai
Thanks for your reply guys. I figured it out. I have typo of serializer name in serilizers.py which is causing the error. Damn, I spend 4 hours into this. On Wed, Jul 22, 2020 at 11:22 AM Liu Zheng wrote: > Hi, > > Probably not enough to look at urls.py files only. My guess: Do you use > ‘revers

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Liu Zheng
Hi, Probably not enough to look at urls.py files only. My guess: Do you use ‘reverse’ function anywhere in covid app? If so, here’s a circular import: urls.py imports covid urls -> covid urls import covid views -> one covid view uses reverse -> reverse import urls.py of the project (to look up th

Re: Import csv file on django view

2020-07-22 Thread Liu Zheng
What i meant was that you can only feed binary data or binary handlers to chardet. You can decode the binary data according to the detection results afterward. On Wed, 22 Jul 2020 at 11:11 PM, Liu Zheng wrote: > Hi, glad you solved the problem. Yes, both the request.FILES[‘file’] and > the chard

Re: Import csv file on django view

2020-07-22 Thread Liu Zheng
Hi, glad you solved the problem. Yes, both the request.FILES[‘file’] and the chardet file handler are binary handlers. Binary handler presents the raw data. chardet takes a sequence or raw data and then detect the encoding format. With its prediction, if you want to open that puece of data in text

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
I’m confused. I don’t know if I can help. > On Jul 22, 2020, at 11:11 AM, Liu Zheng wrote: > > Hi, glad you solved the problem. Yes, both the request.FILES[‘file’] and the > chardet file handler are binary handlers. Binary handler presents the raw > data. chardet takes a sequence or raw data a

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
Cool! I’m so happy I was able to help you!! Good luck! > On Jul 22, 2020, at 11:11 AM, Liu Zheng wrote: > > Hi, glad you solved the problem. Yes, both the request.FILES[‘file’] and the > chardet file handler are binary handlers. Binary handler presents the raw > data. chardet takes a sequence

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
That’s probably not the proper answer, but that’s the best I can do. Sorry :-( > On Jul 22, 2020, at 10:46 AM, Ronaldo Mata wrote: > > Yes, the problem here is that the files will be loaded by the user, so I > don't know what delimiter I will receive. This is not a base command that I > am usi

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
Maybe first use the standard file.open to save the file to a variable, search that variable for the different delimiters using standard string manipulation vichulu, and then open it using the corresponding delimiter. > On Jul 22, 2020, at 10:39 AM, Ronaldo Mata wrote: > > Hi Kovy, I'm using cs

Re: Error in manage.py when I do python manage.py runserver

2020-07-22 Thread Jagtar Singh Lakhyan
Use python3 & install if Not installed then run python3 manage.py runserver On Wed, Jul 22, 2020 at 8:08 PM Kovy Jacob wrote: > It gives me a syntax error > > Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver > 0.0.0.0:8000 > File "manage.py", line 16 > ) from exc: > ^ > Syntax

Re: Import csv file on django view

2020-07-22 Thread Ronaldo Mata
Yes, the problem here is that the files will be loaded by the user, so I don't know what delimiter I will receive. This is not a base command that I am using, it is the logic that I want to incorporate in a view El mié., 22 jul. 2020 a las 10:43, Kovy Jacob () escribió: > Ah, so is the problem th

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
Ah, so is the problem that you don’t always know what the delimiter is when you read it? If yes, what is the use case for this? You might not need a universal solution, maybe just put all the info into a csv yourself, manually. > On Jul 22, 2020, at 10:39 AM, Ronaldo Mata wrote: > > Hi Kovy, I

Re: Import csv file on django view

2020-07-22 Thread Ronaldo Mata
Hi Kovy, I'm using csv module, but I need to handle the delimiters of the files, sometimes you come separated by "," others by ";" and rarely by "|" El mié., 22 jul. 2020 a las 10:28, Kovy Jacob () escribió: > Could you just use the standard python csv module? > > On Jul 22, 2020, at 10:25 AM, Ro

Error in manage.py when I do python manage.py runserver

2020-07-22 Thread Kovy Jacob
It gives me a syntax error Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver 0.0.0.0:8000 File "manage.py", line 16 ) from exc: ^ SyntaxError: invalid syntax I didn’t edit manage.py yet, I literally just started the project. I was thinking maybe its a) a version error, or b) I k

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
Could you just use the standard python csv module? > On Jul 22, 2020, at 10:25 AM, Ronaldo Mata wrote: > > Hi Liu thank for your answer. > > This has been a headache, I am trying to read the file using csv.DictReader > initially i had an error trying to get the dict keys when iterating by rows

Re: Import csv file on django view

2020-07-22 Thread Ronaldo Mata
Hi Liu thank for your answer. This has been a headache, I am trying to read the file using csv.DictReader initially i had an error trying to get the dict keys when iterating by rows, and i thought it could be encoding (for this reason i wanted to prepare the view to use the correct encoding). for

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread sandeep kumar
I have faced this issue atleast 100 times..:) Her are the steps (sorry, I could not find a better way): 1. comment urls in urls.py (inside individual app) 2. check if you still have issue 2a. if you do not have issue, then you probably have not defined views for some of the urls 2b. if you still

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Chaitanya Sai
Hello Django users, Is there not even single person who can solve this issue?? On Tue, Jul 21, 2020 at 8:09 PM Sai wrote: > I am working Django rest framework api project, where I had multiple apps > in the project. I got a circular import error when I am adding the app URLs > to th

Re: New Comer Alert !!!

2020-07-22 Thread kyenshak david
Thanks sir for the recommendation On Wed, 22 Jul 2020, 05:34 Mike Dewhirst, wrote: > Old comer alert! > > There are those among us who will never have anything to do with facebook. > > Here is where to look ... > > https://www.djangoproject.com/community/ > > > > > On 22/07/2020 1:29 pm, Exactly

Django Rest Framework

2020-07-22 Thread mishra39076
Can anyone suggest me resources to learn django rest framework. -- 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 vie

Re: Python-django project

2020-07-22 Thread Muhammad Faraz
Interested. On Tue, Jul 21, 2020 at 08:10 learn code wrote: > Hi everyone, > > I am learning python and django, like to work on the projects to improve > more.If any one interested to join with me to work on the projects,plz send > me a email. > > -- > You received this message because you are s

Re: Get Personal and maching Horoscope

2020-07-22 Thread Tobi DEGNON
This is not really Django related, you will better off doing a Google search. Le mer. 22 juill. 2020 11 h 13, Ashutosh Mishra a écrit : > I want to create api's to get personal horoscope and the matching > horoscope by providing > date of birth for girl and boy,some one plz guide how can we do

Get Personal and maching Horoscope

2020-07-22 Thread Ashutosh Mishra
I want to create api's to get personal horoscope and the matching horoscope by providing date of birth for girl and boy,some one plz guide how can we do this -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and s