URL pattern problem

2023-03-13 Thread Mark McWiggins
I have a URL pattern setup like this: from django.urls import include, re_path from . import views app_name = 'devices' urlpatterns = [ re_path(r'^show/(?P[\w@./#&+-]+)$', views.show_device, name='show'), re_path(r'^depot/(?P[\w@./#&+-]+)$', views.depot_device, name='depot'), But when t

Re: Django Admin

2023-03-13 Thread Muhammad Juwaini Abdul Rahman
In my previous case, I only use this: CSRF_TRUSTED_ORIGINS = ['https://your site url',] On Tue, 14 Mar 2023 at 04:33, Prosper Lekia wrote: > This is how I deal with all csrf related issues. > > Make sure csrf MiddleWare is in your MiddleWare list > > 'django.middleware.csrf.CsrfViewMiddleware'

Re: Arbitrage bot

2023-03-13 Thread Christopher Lucero
Why create your own crypto bot when there is a crypto arbitrage team cat who pay a percentage of the investment and protect your assets, that is, you are guaranteed to receive your money with interest. воскресенье, 21 июня 2020 г. в 23:17:16 UTC+2, turing machine go brrr

Re: Django Admin

2023-03-13 Thread Prosper Lekia
This is how I deal with all csrf related issues. Make sure csrf MiddleWare is in your MiddleWare list 'django.middleware.csrf.CsrfViewMiddleware' Add the settings below in your settings.py to prevent all csrf related issues CSRF_TRUSTED_ORIGINS = ['https://your site url',] SECURE_PROXY_SSL_HE

Re: Django Admin

2023-03-13 Thread Starnford Chirwa
Howzt bro On Sat, 11 Mar 2023, 22:48 Letlaka Tsotetsi, wrote: > Please share your code so we can be able to assist you > > On Sat, 11 Mar 2023 at 8:04 PM, James Hunt wrote: > >> Hi there. I am fairly new to Django but have had previous success with >> creating an app and being able to access th

Re: Where to include libraries I write in a django app

2023-03-13 Thread bck...@gmail.com
Hi Scott, Yes, generally single-app relevant utility code should be included as additional modules within that app. Some examples: my_app ├── __init__.py ├── apps.py ├── models.py ├── urls.py ├── utils.py # include utility code as another module └── views.py ​ my_app ├── __init__.py ├── apps.py

Re: Django Admin

2023-03-13 Thread Sandip Bhattacharya
> On Mar 13, 2023, at 5:14 AM, James Hunt wrote: > > I have yet to create a HTML page so I'm not sure that the inclusion of {% > csrf_token %} is required. I mean it's just the admin page I am trying to > access which is provided by Django and not a page created by me!!! > > I am very surpri

Re: Django Admin

2023-03-13 Thread Paul Kudla
ok hope i am not adding to the confusion I ran into this a while back CSRF errors are usually (in my case anyways) triggered by apache SSL setup etc if you are running Apache + SSL you need to make sure the certificates and the SNI ssl naming is setup correctly or the CSRF errors will tri

Re: Django Admin

2023-03-13 Thread James Hunt
Hi there. I have yet to add a login/register page since I am only trying to access the admin page which is a part of the Django project setup. So in effect, there are no HTML pages setup and I cant access the Django admin page layout as this is an integral part of Django!!! This is the problem!!

Re: How to implement visa card and debit card payment in django

2023-03-13 Thread Benjamin Telford
Hello, Ntanda Aloysius Recently, I took part in development of very similar project ( https://synkbooks.com). It's Bookkeeping website that include the payment integration such as invoicing system using Credit Card API, Stripe API, Paypal API and Plaid API. I implemented the frontend using React

Re: How to implement visa card and debit card payment in django

2023-03-13 Thread Deep Chirag
Hey, Please follow STRIPE Documentation (https://stripe.com/) Regards Deep Chirag On Fri, Mar 10, 2023 at 8:32 PM Ntanda Aloysius wrote: > how can I implement payment integartion in my Django ecommerce website > > -- > You received this message because you are subscribed to the Google Groups >

Re: How to implement visa card and debit card payment in django

2023-03-13 Thread Andy Piltser-Cowan
Do you have an account with a payment processing company? That's the first step; second step is read their documentation about API access / web integration. On Friday, March 10, 2023 at 10:02:58 AM UTC-5 Ntanda Aloysius wrote: > how can I implement payment integartion in my Django ecommerce we

Re: Django Admin

2023-03-13 Thread Andrew Romany
It's very simple you should add it in the login/register html page but inside the tag after & to be specific after this above line. On Mon, 13 Mar 2023, 11:15 a.m. James Hunt, wrote: > I have yet to create a HTML page so I'm not sure that the inclusion of {% > csrf_token %} is required. I mean

System checks order

2023-03-13 Thread Jan Siems
Django systems checks are running in an none determinate order. This is a problem if i write my own checks that are dependent to each other and must run in a specific order. E.g. if i import some data to the database in a deployment process where the tables are related to each other they must

Re:

2023-03-13 Thread Praveen Kumar
Please suggest the training material that I need to follow On Monday, 13 March 2023 at 14:39:46 UTC+5:30 Mir Junaid wrote: > I can help you connect me on linkedIn on below link: > https://www.linkedin.com/in/junaid-ahmad-mir-a7a7561b7/ > > On Mon, 13 Mar 2023 at 13:55, Praveen Kumar wrote: > >>

Re: Django Admin

2023-03-13 Thread James Hunt
I have yet to create a HTML page so I'm not sure that the inclusion of {% csrf_token %} is required. I mean it's just the admin page I am trying to access which is provided by Django and not a page created by me!!! I am very surprised there is no fix for this issue!!! I might need to abandon Dj

Re:

2023-03-13 Thread Mir Junaid
I can help you connect me on linkedIn on below link: https://www.linkedin.com/in/junaid-ahmad-mir-a7a7561b7/ On Mon, 13 Mar 2023 at 13:55, Praveen Kumar wrote: > Yes, I want login structure and a dashboard in hieratical structure to > show the progress. > > On Fri, Mar 10, 2023 at 8:32 PM Mir J

Re:

2023-03-13 Thread Praveen Kumar
Yes, I want login structure and a dashboard in hieratical structure to show the progress. On Fri, Mar 10, 2023 at 8:32 PM Mir Junaid wrote: > what kind of dashboard > and for what purpose > > > On Fri, 10 Mar 2023 at 11:20, Praveen Kumar > wrote: > >> Hello Team, >> >> Need help on creating one