Unable to add token headers to graphene-django test using pytest

2021-10-04 Thread Muhammad Shehzad
*I am trying to add a token to graphene-django headers using pytest. But It always return that user is anonymous as shown at the end but it should return user as token is added in fixture@pytest.fixture def client_query(client): def func(*args, **kwargs): return graphql_query(*args, **kwargs, clien

Embedded Images in emails

2021-10-04 Thread Bit Rate
I recently change my email from plain text to html. This includes the registration verification email, as well as any other email regarding updates and notifications. It works fine in development, but not in production. In my production setting, django is unable to find the image and gives me th

Re: Where are you deploying Django App? How much does it cost for a hobby project

2021-10-04 Thread MR INDIA
*Since it is a hobby project *i would recommend *heroku free hosting* On Sunday, 3 October 2021 at 21:57:25 UTC+5:30 avi.me...@gmail.com wrote: > Hello! I am building a prototype Django app and would like to deploy it so > that people can use it. > What would be the most cost-effective and cheap

Re: Embedded Images in emails

2021-10-04 Thread Kasper Laudrup
On 04/10/2021 12.30, Bit Rate wrote: [Errno 2] No such file or directory: '/media/logo256.png' I have tried everything and is now out of ideas, hoping someone here ran into the same issue and can help me please. Have you tried checking if there is a file located at '/media/logo256.png'? Is

Re: Where are you deploying Django App? How much does it cost for a hobby project

2021-10-04 Thread Paul Tiplady
You can deploy to Heroku, there's a free tier and it's very low maintenance. https://devcenter.heroku.com/articles/deploying-python I've had a free Django app running there that I set up almost 10 years ago without any work required to keep it up since then. Heroku is somewhat expensive if you

Django Query

2021-10-04 Thread Eugene TUYIZERE
Team, Assume you have 3 tables PROVINCES, DISTRICTS, and SECTORS and you have Province, District and Sector field names respectively in each table. How can you display in the Django template the following table? Province District Sectors A A1 A11 A12 A2 A21 A22 A3 A31 A32 Any assistance will be

Re: Django Query

2021-10-04 Thread Sebastian Jung
Hello Eugene, I think that django mptt can Store and display such a tree. Regards Eugene TUYIZERE schrieb am Mo., 4. Okt. 2021, 20:29: > Team, > > Assume you have 3 tables PROVINCES, DISTRICTS, and SECTORS and you have > Province, District and Sector field names respectively in each table. > >

Proposed bug in Admin

2021-10-04 Thread Mike Dewhirst
The following error message is reproducible from different Django website admin systems used from Safari on an iPad. It is an old iPad so that might be the issue. Saving the substance does not produce a 500 error. The record gets saved and the page redisplays correctly except the success messa

from excel to postgesql

2021-10-04 Thread Nader Elsisi
I have a site on heroku up and running, database postgresql, the models have a lot of relations. I want to add data from excel file about 400 excel rows by code in django. How can I access the excel file to read the data? or suggest another way for the job to be done. Thanks for your help. Nad

How to port a Django web app in mobile (iOS & Android)

2021-10-04 Thread Ram
Hi, We have a working WebApp developed with Django, Python and Vue.Js. The application is working ok when it is opened in Mobile devices but we need to do lot of tweaking UI to make it compatible to mobile devices everytime. So we are looking for a way to create a mobile app and also need to updat