Inline Formset

2020-09-17 Thread Emmanuel Oppong Ntiamoah
Good day friends, Please i have a small challenge, I have an inline formset in my admin where users can add more products to a store. The user can also add a product if It doesn’t already exist. The problem is when the user adds a new product and wants to add more product fields to the Store

Re: TypeError: object() takes No Parameters

2020-09-17 Thread coolguy
The error lies in the following line >>> queryset = monthlyCostTable(getMonthlyCostQuery(2020, 'region')) Your class monthlyCostTable does not take any parameter while you are passing getMonthlyCost... you know better what your doing but this line is the root cause... On Thursday,

Re: Using Getstream with Django

2020-09-17 Thread amcode...@gmail.com
Many thanks for the advice. On Wednesday, 16 September 2020 at 21:33:28 UTC+8 Ryan Nowakowski wrote: > It looks like getstream.io offers an API and a Python library to access > it. I'd follow the documentation here: > > https://github.com/GetStream/stream-python > > They also have libraries to

Re: TypeError: object() takes No Parameters

2020-09-17 Thread Patrick Carra
[Thu Sep 17 23:07:26.870983 2020] [wsgi:error] [pid 39120] [remote 142.136.2.27:45290] Internal Server Error: /functions/ClassMonthlyCost/ [Thu Sep 17 23:07:26.871052 2020] [wsgi:error] [pid 39120] [remote 142.136.2.27:45290] Traceback (most recent call last): [Thu Sep 17 23:07:26.871057 2020]

Re: Explain me

2020-09-17 Thread Dylan Reinhold
Well, (r'^*$*') that is a python Regular expression syntax https://docs.python.org/3/library/re.html ^ is the start of string and $ is end of string, so it's matching on nothing. A url with nothing after the /. Dylan On Thu, Sep 17, 2020 at 1:01 PM kkwaq...@gmail.com wrote: > [image: ex.jpg]

Re: I want to store (City, Country) pairs in my models as a field. Is GeoDjango an overkill for my use case?

2020-09-17 Thread Carles Pina i Estany
Hi, On Sep/17/2020, John Reese wrote: > I want to store (City, Country) pairs in my models as a field. I want to do > something like this (the location field). > > *Is GeoDjango an overkill for my use case? If yes, what do you suggest me > to use?* I've read

Explain me

2020-09-17 Thread kkwaq...@gmail.com
[image: ex.jpg] can you explain me *(r'^s'),what is this.* -- 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

Re: TypeError: object() takes No Parameters

2020-09-17 Thread Patrick Carra
The actual trace coolguy is TypeError at /functions/ClassMonthlyCost/object() takes no parametersRequest Method: GETRequest URL: http://98.8.61.133:8080/functions/ClassMonthlyCost/Django Version: 2.2.4Exception Type: TypeErrorException Value: object() takes no parametersException

Re: Online food ordering system Django

2020-09-17 Thread iheaka Ogechi
Yes But both with Django Php On Wed, Sep 16, 2020, 4:08 PM Tanni Seriki wrote: > Please those any one has a project like online food ordering system... > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and

Re: TypeError: object() takes No Parameters

2020-09-17 Thread coolguy
is there any specific line number that message is pointing too. Can you share the actual error message and its trace... On Thursday, September 17, 2020 at 2:35:53 PM UTC-4 pcar...@gmail.com wrote: > Hello everyone, I am trying to utilize the SIngleTableMixin of > django_tables2 using a custom

TypeError: object() takes No Parameters

2020-09-17 Thread Patrick Carra
Hello everyone, I am trying to utilize the SIngleTableMixin of django_tables2 using a custom function that queries my database and aggregates the data into a list of dictionaries. I read to use the SingleTableMixin that all I needed was an iterable containing a data structure that has a key(a

Re: Deploying my Django project

2020-09-17 Thread Theresa Taye
Thank you very much guys, I am currently using the free hosting on Heroku but reading online I learnt the paid version can be expensive. I just need a real-life experience of the one anyone has used and that works fine. I'm working on a health blog site. All the same, the responses are well

Re: Admin site's css doesn't work.

2020-09-17 Thread Ankit Gadewal
If you run it on localhost it works fine but when you run site in production static files fails to work. So you have to add static root in Django setting.py file like STATIC_ROOT = os.path.join(BASE_DIR, 'static') and then run python manage.py collectstatic command. It will collect all the server

Re: Django and PostgreSQL update

2020-09-17 Thread Oussama Ben Rejeb
u can do a data dump before, but i think that there is no problem to update it On Thursday, September 17, 2020 at 2:29:46 PM UTC+2 dupakoo...@gmail.com wrote: > Hello everyone, > > I have a small database. Django version currently 2.2, postgres 9.2.24. I > forgot to note the psycopg2 older

Re: Deploying my Django project

2020-09-17 Thread Maverick Moore
Python Anywhere can get a simple web app online quick and easy. AWS / Heroku might be more appropriate for complex applications with separate staging environments. It is hard to make a specific recommendation without knowing more about your project. On Thursday, September 17, 2020 at 9:47:29

RES: Deploying my Django project

2020-09-17 Thread Samuel Nogueira
Hi, heroku is a good choice to deploy your Project.  -Samuel Nogueira Bacelar GitHub: https://github.com/SamuelNoB Linkedin: https://www.linkedin.com/in/samuel-nogueira-87800b1aa/ 

Re: Admin site's css doesn't work.

2020-09-17 Thread Omkar Parab
server is not able to find your static files. Run collect static command and add static root to your settings.py On Thu, Sep 17, 2020, 7:16 PM English Learning wrote: > when I host it, Admin's *CSS* doesn't show. Also, I am using SQLite > database. Screenshot is here: > > [image:

Use AUTHENTICATION_BACKENDS with django channels

2020-09-17 Thread Ron2020
Hi I try to figure out how to use django AUTHENTICATION_BACKENDS with django channels I see it get KeyError (_auth_user_id) when parse the request, I wonder why it return anonymous user immediately and not query the AUTHENTICATION_BACKENDS

Reject a Websocket connection with a code.

2020-09-17 Thread Stefan Cardnell
Hi guys, please read my Stackoverflow question: https://stackoverflow.com/questions/63862762/django-channels-correct-way-to-reject-an-unauthorized-websocket-request I'm having an issue rejecting a websocket connection and have the client receive the associated code (unauthorized, bad page,

Re: Check this out guys

2020-09-17 Thread Frank Chukka
Awesome stuff On 16 Sep 2020 8:42 am, "712189512" wrote: > Hi guys i have build this *https://connectdjango.com > * platform with django and i want you to check > it out,you can post your questions there and and also post some tutorials > too,let's all connect and

Admin site's css doesn't work.

2020-09-17 Thread English Learning
when I host it, Admin's *CSS* doesn't show. Also, I am using SQLite database. Screenshot is here: [image: DjangoAdmin.png] Is it a Database problem? Please let me know the answer. I am suffering from it because it is a Client project. -- You received this message because you are subscribed

Deploying my Django project

2020-09-17 Thread Theresa Taye
Hello guys, please can anyone make recommendations about good hosting to use for my django project. thanks in anticipation -- 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

RE: Django and PostgreSQL update

2020-09-17 Thread dupakoor kannan
Hello everyone, I have a small database. Django version currently 2.2, postgres 9.2.24. I forgot to note the psycopg2 older version. It was working fine. I have updated django to 2.2.26 and psycopg2==2.8.3. Also, I made changes in my model and migrated. I come across this error during migration.

Re: Check this out guys

2020-09-17 Thread 712189512
Yeah sure On Thu, Sep 17, 2020 at 1:03 PM Tobi DEGNON wrote: > Dude, can we contribute to your project ? > > Le jeu. 17 sept. 2020 à 10:39, 712189512 a > écrit : > >> Yeah still working on it thanks >> >> On Thu, Sep 17, 2020 at 11:19 AM Madhav Nandan >> wrote: >> >>> It's good but there is

Re: Check this out guys

2020-09-17 Thread Tobi DEGNON
Dude, can we contribute to your project ? Le jeu. 17 sept. 2020 à 10:39, 712189512 a écrit : > Yeah still working on it thanks > > On Thu, Sep 17, 2020 at 11:19 AM Madhav Nandan > wrote: > >> It's good but there is dome modifications required. Like you could have >> improved UI a bit. >> >> On

Re: Online food ordering system Django

2020-09-17 Thread Shishir Jha
Hi Madhav, Can you show me the heroku app that is deployed and github code if it is open? I just want to look at the site and code(if it is open, of couse) On Thu, 17 Sep 2020, 2:43 pm Madhav Nandan, wrote: > Can you elaborate what you seeking here regarding online food ordering? > > I have

Re: Check this out guys

2020-09-17 Thread 712189512
Yeah still working on it thanks On Thu, Sep 17, 2020 at 11:19 AM Madhav Nandan wrote: > It's good but there is dome modifications required. Like you could have > improved UI a bit. > > On Wed, Sep 16, 2020, 1:19 PM Ashutosh Mishra > wrote: > >> That's really cool buddy >> >> On Wed 16 Sep,

Enable Running of Scripts on System

2020-09-17 Thread Kwandakwethu Mbete
Hi everyone. I new and trying to create a venv. Im using windows. I followed the following steps: > mkdir djangostock > cd /c/djangostock > pip install virtualenv > python -m venv venv > venv\Scripts\activate #This is the final step and it shouldve activated. Instead I got the following message.

Re: Check this out guys

2020-09-17 Thread Madhav Nandan
It's good but there is dome modifications required. Like you could have improved UI a bit. On Wed, Sep 16, 2020, 1:19 PM Ashutosh Mishra wrote: > That's really cool buddy > > On Wed 16 Sep, 2020, 13:12 712189512, wrote: > >> Hi guys i have build this *https://connectdjango.com >>

Re: Online food ordering system Django

2020-09-17 Thread Madhav Nandan
Can you elaborate what you seeking here regarding online food ordering? I have made webapps in django similar to swiggy and also a support mobile app for the same. Its also live on heroku. Make sure what you are seeking here and how I can be your help, then we can be in touch. Best, On Thu,

I want to store (City, Country) pairs in my models as a field. Is GeoDjango an overkill for my use case?

2020-09-17 Thread John Reese
I want to store (City, Country) pairs in my models as a field. I want to do something like this (the location field). *Is GeoDjango an overkill for my use case? If yes, what do you suggest me to use?* -- You received this message because you are subscribed to

Django channels invalid state

2020-09-17 Thread shreeh...@gmail.com
I have built a chat(One to one) application with django channels, redis. When both the users send msg at same time, an error occurs saying Invalid state. Frontend is react natie > backend is drf. Can someone please help me with this ASAP ? Thank you -- You received this message because you

Re: Online food ordering system Django

2020-09-17 Thread Avi shah
Hey , Check out this repo https://github.com/yashjhaveri05/E-Food.git On Wed, Sep 16, 2020 at 8:38 PM Tanni Seriki wrote: > Please those any one has a project like online food ordering system... > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Upload Imagae

2020-09-17 Thread RANGA BHARATH JINKA
Hi, Watch the django part of this video https://youtu.be/1Hc7KlLiU9w All the best On Thu, Sep 17, 2020 at 12:42 PM Kasper Laudrup wrote: > Hi kkwaqar007, > > On 17/09/2020 08.17, kkwaq...@gmail.com wrote: > > *How To Upload Image and save the file and save the databases * > > I have a

Re: Upload Imagae

2020-09-17 Thread Kasper Laudrup
Hi kkwaqar007, On 17/09/2020 08.17, kkwaq...@gmail.com wrote: *How To Upload  Image  and save the file and save the databases * I have a record table for student, i wanna add column IMAGE every each row upload image.. Did you do any research at all? Maybe this could help:

Upload Imagae

2020-09-17 Thread kkwaq...@gmail.com
*How To Upload Image and save the file and save the databases * I have a record table for student, i wanna add column IMAGE every each row upload image.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop