Re: ALLOWED_HOSTS error

2022-11-21 Thread Lakshyaraj Dash
Put only domain names in allowed hosts On Tue, Nov 22, 2022, 06:22 Mike Dewhirst wrote: > My Django log is full of these errors ... > > ERROR > /usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py > TIME: 2022-09-28 00:13:17,204 MSG: exception.py:response_for_exception:99 >

ALLOWED_HOSTS error

2022-11-21 Thread Mike Dewhirst
My Django log is full of these errors ... ERROR /usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py TIME: 2022-09-28 00:13:17,204 MSG: exception.py:response_for_exception:99 Invalid HTTP_HOST header: '111.222.333.444'. You may need to add '111.222.333.444' to

Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
Hey, I implement my needs not directly in oscar dashboard. I implement it my views in my normal frontend views then make new Dashboard menu entry in settings.py and from my view a button back to dashboard if i am staff user... Regards Leslie Taffe schrieb am Di., 22. Nov. 2022, 02:03: > Hey I

Re: ALLOWED_HOSTS error

2022-11-21 Thread Lakshyaraj Dash
No, Actually some ip addresses don't allow access to them directly. So you have to do it with a domain name. On Tue, Nov 22, 2022, 06:41 Mike Dewhirst wrote: > On 22/11/2022 11:54 am, Lakshyaraj Dash wrote: > > Put only domain names in allowed hosts > > > Thank you - that makes me feel better.

Re: Help with understanding django-oscar

2022-11-21 Thread Leslie Taffe
Hey I took a look at the sample project and I'm already familiar with it what I need is some more examples of how to add apps to the dashboard config file ive read the docs a lot I'm just not clear on how to implement it On Mon, Nov 21, 2022, 6:39 PM Sebastian Jung wrote: > Hello Leslie, > > I

Re: ALLOWED_HOSTS error

2022-11-21 Thread Mike Dewhirst
On 22/11/2022 11:54 am, Lakshyaraj Dash wrote: Put only domain names in allowed hosts Thank you - that makes me feel better. Can you tell me why the error is appearing? Is it some sort of hacking attempt? On Tue, Nov 22, 2022, 06:22 Mike Dewhirst wrote: My Django log is full of

Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Toshar Saini
you don't show many to many field in list_display on admin panel On Thu, Nov 17, 2022 at 7:51 PM Sagar Singh wrote: > i created three model relation table > > onetoone() > manytoone(foreignkey) > manytomanyfield() > > i try to show data of manytpmany field on admin panel but they give error > >

Re: Page Integration

2022-11-21 Thread Toshar Saini
https://medium.com/django-rest/django-rest-framework-login-and-register-user-fd91cf6029d5 Just visit on and read out On Fri, Nov 11, 2022 at 10:48 AM Pooja Kumari wrote: > I tried many ways but nothing works. > Sorry this code is messed up but hope you get some idea what I'm trying to > do. >

Re: Public and Private Chat Room Creation with Django Python Framework

2022-11-21 Thread Chukwudi Onwusa
Thanks man. On Mon, Nov 21, 2022, 00:50 Lakshyaraj Dash wrote: > class Room(models.Model): >... >is_private = models.BooleanField(default=False) > > In views.py > def chat_room(request): > if room.is_private: >return redirect ("/") > else: >... > > On Mon, Nov

Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Chukwudi Onwusa
Use Win Key + prt SC To screenshot of you are using windows 10 OS On Mon, Nov 21, 2022, 14:55 Chukwudi Onwusa wrote: > Your screenshots are not clear enough. > > On Thu, Nov 17, 2022, 15:21 Sagar Singh wrote: > >> i created three model relation table >> >> onetoone() >> manytoone(foreignkey)

Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Chukwudi Onwusa
Your screenshots are not clear enough. On Thu, Nov 17, 2022, 15:21 Sagar Singh wrote: > i created three model relation table > > onetoone() > manytoone(foreignkey) > manytomanyfield() > > i try to show data of manytpmany field on admin panel but they give error > > 'type' object is not

join on plain integerfield

2022-11-21 Thread Marek Rouchal
I need to access an *existing database whose schema I cannot alter*; I used the Django tool to extract the tables to create models.py, which worked great, and I already hacked some model definitions, e.g. to replace a simple IntegerField with a ForeignKey. But there are specific tables, where

Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Lakshyaraj Dash
Try onetomany relationship On Thu, Nov 17, 2022, 19:51 Sagar Singh wrote: > i created three model relation table > > onetoone() > manytoone(foreignkey) > manytomanyfield() > > i try to show data of manytpmany field on admin panel but they give error > > 'type' object is not subscriptable > > --

Re: Apps aren't loaded yet exception when trying to run migrate Django oscar

2022-11-21 Thread Leslie Taffe
Hey so I solved that problem by deleting all the migrations then migrating again to apply changes. now I just need to figure out how to configure the rest of the app to my needs. Do any of you know any up to date repos I could take a look at? On Saturday, 12 November 2022 at 15:31:31 UTC-8

Help with understanding django-oscar

2022-11-21 Thread Leslie Taffe
Hey so i'm a new dev looking into utilizing Oscar but a lot of things in the doc aren't clear to me if anyone would be willing to just show me an example project I'd be fine with just that -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
Hello Leslie, I am know many things in django oscar. Please ask if yoz have questions. Regards Leslie Taffe schrieb am Di., 22. Nov. 2022, 00:30: > Hey so i'm a new dev looking into utilizing Oscar but a lot of things in > the doc aren't clear to me if anyone would be willing to just show me

Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
Here are sanbox project with i have start https://github.com/django-oscar/django-oscar/tree/master/sandbox Good luck. On beginning absolut chaos because many things are not so as you know. For example show in apps.py this is absokut different as i know with urls.py. Or that models.py connects to