how to keep django ninja APIs distributed in modules in an apis package?

2024-07-26 Thread Krishnakant Mane
, api_parties.py and api_bills.py with crud functions decorated with respective get, post ... etc. Now How all these APIs can be bound together in such a way that they can be imported in my project's urls.py? or will there be a differnt way of doing this? Regards. -- You received this message

Re: How to use different templates for different sites/domains

2024-05-29 Thread Faisal Mahmood
You're right, using a single Django instance to serve multiple sites with overridden templates can be tricky. While a custom template loader might seem appealing, it's true that it doesn't accept the request object by default. Here's the breakdown and some alternative solutions: The Challenge:

Re: How to use different templates for different sites/domains

2024-05-28 Thread Mike Dewhirst
On 28/05/2024 9:09 pm, Antonis Christofides wrote: Hello, I use the sites framework for a Django project that serves many different domains. But each of those domains has some templates overridden. Might depend on what you are overriding - entire templates or just includes or just vars.

How to use different templates for different sites/domains

2024-05-28 Thread Antonis Christofides
Hello, I use the sites framework for a Django project that serves many different domains. But each of those domains has some templates overridden. If I used a different instance of Django (i.e. a different gunicorn service) for each domain, I'd have different settings for each site. But I'm

how to acheive this

2024-05-09 Thread malhaar mahapatro
I have scrpaded and saved attachment I want to send it to dashboard of iso,isto and irt and I want an option that they have seen that message or not and what action taken I can see and then can send again to csirt dashboard about action taken and csirt can send it to whom he wants how to achieve

How to solve Access to fetch at 'https://api.amadeus.com/v1/flight-offers' from origin 'http://127.0.0.1:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access contro

2024-04-21 Thread Эля Min
I have this one:from django.middleware.common import MiddlewareMixin from django.http import JsonResponse class CorsMiddleware(MiddlewareMixin): def process_request(self, request): if request.method == "OPTIONS" and "HTTP_ACCESS_CONTROL_REQUEST_METHOD" in request.META:

Re: How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Luis Zárate
ha Bah (< > mamadoualphabah...@gmail.com>) escribió: > >> <https://stackoverflow.com/posts/78314829/timeline> >> >> I'm setting up a CRUD system with Django, using Class-Based Views. >> Currently I'm trying to figure out how to handle HTTP PUT and DELETE >

Re: How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Luis Zárate
cribió: > <https://stackoverflow.com/posts/78314829/timeline> > > I'm setting up a CRUD system with Django, using Class-Based Views. > Currently I'm trying to figure out how to handle HTTP PUT and DELETE > requests in my application. Despite searching the Django documentatio

How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Mamadou Alpha Bah
<https://stackoverflow.com/posts/78314829/timeline> I'm setting up a CRUD system with Django, using Class-Based Views. Currently I'm trying to figure out how to handle HTTP PUT and DELETE requests in my application. Despite searching the Django documentation extensively, I'm having t

Re: How to format datetime stamp in JS like it is doing by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
> JavaScript. Here's how you can do it: > > > > Retrieve the date and time format defined by Django in your JavaScript > file using a Django template rendering method. > > > > > > > > // Get the date and time format defined by

Re: How to format datetime stamp in JS like it is doing by the date template tag?

2024-03-21 Thread Matthias Yeni
To format the timestamp in JavaScript according to the format defined by Django, you can use Django settings to determine the format and adapt it in JavaScript. Here's how you can do it: Retrieve the date and time format defined by Django in your JavaScript file using a Django template

How to format datetime stamp in JS like it is done by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
Hello everyone, I am customizing Django admin by adding a datetime stamp to the page using JavaScript. I want to format the datetime stamp according to the format set by Django. It is possible to get the DATETIME_FORMAT using the get_format() method in JS which is "'j M Y, P'". But, this

How to format datetime stamp in JS like it is doing by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
Hello, I have customizing Django admin by adding a datetime stamp to the page using JavaScript. I want to format the datetime stamp according to the format set by Django. It is possible to get the DATETIME_FORMAT using the get_format() method in JS. But, this format is not supported by the

RE: How to send email from django without authenticate smtp server

2024-03-05 Thread Mike Dewhirst
Why don't you use TLS so your connection with the server is encrypted? Port 25 is a bit ancient.--(Unsigned mail from my phone) Original message From: Praveen Chaudhary Date: 5/3/24 04:50 (GMT+10:00) To: django-users@googlegroups.com Subject: How to send email from django

RE: How to send email from django without authenticate smtp server

2024-03-05 Thread Mike Dewhirst
Why don't you use TLS so your connection with the server is encrypted? Port 25 is a bit ancient.--(Unsigned mail from my phone) Original message From: Praveen Chaudhary Date: 5/3/24 04:50 (GMT+10:00) To: django-users@googlegroups.com Subject: How to send email from django

Re: How to send email from django without authenticate smtp server

2024-03-04 Thread jose kj
Ask chatgpt or bard On Mon, 4 Mar, 2024, 11:20 pm Praveen Chaudhary, wrote: > Hello everyone, > > Basically, I want to send the email from django using smtp server. I have > my own smtp server domain host at port 25, but don't want to pass > EMAIL_HOST_USER & EMAIL_HOST_PASSWORD. I am using

How to send email from django without authenticate smtp server

2024-03-04 Thread Praveen Chaudhary
Hello everyone, Basically, I want to send the email from django using smtp server. I have my own smtp server domain host at port 25, but don't want to pass EMAIL_HOST_USER & EMAIL_HOST_PASSWORD. I am using EmailMultiAlernatives to send the html and file, I am unable to send email without

Re: How can I acess Multilinestring(dim=3)

2024-02-24 Thread Richard Mair
Hi David, thanks for your help. I tried setting dim to 4 but did't see any change. Here is my model: ```python from django.contrib.gis.db import models class Kmsys(models.Model): # Define constants EPSG_CODE = 31287 NAME_OF_GEOMETRY_FIELD = "geom" # F I E L D S

Re: How can I acess Multilinestring(dim=3)

2024-02-24 Thread David James Nwoyie
Increase the dim to 4 because of the Django of use 0 as the starting point On Sat, Feb 24, 2024, 8:48 PM Richard Mair wrote: > Hi i am using > > geom = models.MultiLineStringField( > dim=3, srid=EPSG_CODE, blank=True, null=True, spatial_index=True > ) # EPSG:3128=AustriaLambert > > > and my

How can I acess Multilinestring(dim=3)

2024-02-24 Thread Richard Mair
Hi i am using geom = models.MultiLineStringField( dim=3, srid=EPSG_CODE, blank=True, null=True, spatial_index=True ) # EPSG:3128=AustriaLambert and my PostGIS-DB is using (MultilinestringM ALTER TABLE IF EXISTS public."KMSYS" ADD COLUMN geom geometry(MultiLineStringM,31287); but when I

Re: how to display group and create user permission in templates?

2024-02-20 Thread ABDUL HAFEEZ
much appreciated On Tuesday, February 20, 2024 at 7:55:47 AM UTC+5 Ryan Nowakowski wrote: > On Mon, Feb 19, 2024 at 02:16:29AM -0800, ABDUL HAFEEZ wrote: > > Hell all how to display *createsuperuser *and there permission in > *templates > > *instead of admin da

how to display group and create user permission in templates?

2024-02-19 Thread ABDUL HAFEEZ
Hell all how to display *createsuperuser *and there permission in *templates *instead of admin dashboard -- 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, sen

Re: How to create an individual instagram message into threads?

2023-11-17 Thread Alex Shibly
While I don't have specific knowledge about implementations in Instagram clones in Django applications, I can provide you with guidance on how you might approach implementing the features you described. Implementing a messaging system with thread-like conversations can be achieved by creating

Re: How to fix deadlocks with tests?

2023-10-27 Thread Chetan Ganji
://ryucoder.in On Fri, Oct 27, 2023 at 9:50 PM Joshua Gardner wrote: > I'm experiencing deadlocks in my production application occasionally. I'm > using MySQL. Some of these deadlocks are due to insufficient indexing, > and I'd like to fix this with some test-driven development. > >

How to fix deadlocks with tests?

2023-10-27 Thread Joshua Gardner
I'm experiencing deadlocks in my production application occasionally. I'm using MySQL. Some of these deadlocks are due to insufficient indexing, and I'd like to fix this with some test-driven development. How can I write tests that exercise the application concurrently, and could be used

Re: How to monitor content updates or deletion in Django web applications

2023-10-04 Thread Timothy Myers
I am also not sure of the scope of your question. If you're asking about a file deleted from the system by a method other than Django. I use a trusted database of files required with a hash and have a process (Django script) that runs and checks both the presence of a file and its hash code.

Re: How to monitor content updates or deletion in Django web applications

2023-10-04 Thread David Nugent
Yes, certainly worth mentioning. ContentTypes is the secret sauce in django admin for sure and extremely useful for building generic functionality without hard coding to specific models. It’s like a through table in a relational db, where entities can be tracked. And it’s all automatic, built into

Re: How to monitor content updates or deletion in Django web applications

2023-10-04 Thread Ruby
Hi there, I don't know if there's a library for that, but I believe you can build what you need using the built-in Django Content-Type I have used it a few times and Django admin site also uses it under the hood. On Wed, Oct 4,

Re: How to monitor content updates or deletion in Django web applications

2023-10-03 Thread David Nugent
The may not be enough context in your question but I imagine that the following link may take you to something that may work for you. https://docs.djangoproject.com/en/4.2/topics/signals/ On 4 October 2023 at 14:42:45, Ram (ram.mullap...@gmail.com) wrote: > Hi, > > We would like to add this

How to monitor content updates or deletion in Django web applications

2023-10-03 Thread Ram
Hi, We would like to add this feature in our Web application and capture the following events in log files: 1. If any image is deleted by any reason 2. Any content is deleted by any reason Does Django have any libraries or functions to achieve this? Best regards, ~Ram -- You received this

How to build table of references to other tables

2023-09-21 Thread Glenn Weaver
to be in a specific order, and save the list of items in a table for future use. How do I do this? Thank you for your help! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

How to use connect and disconnect, receive method in SyncConsumer using HTTP protocol

2023-09-08 Thread GP
p; receive method when you use WebSocket protocol, but i am not getting how can i write these method using HTTP protocol. As of now In SyncConsumer class there is only dispatch and send method. Also, i am trying to use channels.exceptions import StopConsumer, how can i use them and test it through co

Re: pytest, asgiref, Selenium and database access? How to make them work?

2023-09-07 Thread Luciano Martins (luxu)
Hello, how is your postgres configured, because there is no database called test2. this is the error Em quarta-feira, 6 de setembro de 2023 às 19:08:32 UTC-3, Alfons Eberle escreveu: > Hey, has anyone gotten pytest to work with django-channels (or asgiref + > Daphne) and Selenium in g

Re: pytest, asgiref, Selenium and database access? How to make them work?

2023-09-07 Thread David Nugent
install pytest-django use fixture @pytest.mark.db profit On 5 September 2023 at 08:15:10, Alfons Eberle (alfons.sig...@gmail.com) wrote: > Hey, has anyone gotten pytest to work with django-channels (or asgiref + > Daphne) and Selenium in general when database access is required? > > My fixtures

pytest, asgiref, Selenium and database access? How to make them work?

2023-09-06 Thread Alfons Eberle
Hey, has anyone gotten pytest to work with django-channels (or asgiref + Daphne) and Selenium in general when database access is required? My fixtures for users and other models import just fine, but my browser and Daphne process seem to be unaware of the test database and seem unable to

Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-09-04 Thread Michal Plsek
Just register post_update signal with the Model you want to "watch" to be created/updated, and in optimal case send message to some asynchronous queue, which will take message 15 minutes late and processes it by creating Notification object. For example async queue = aws sqs, they even support

Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-31 Thread Andréas Kühne
First of all - notification - what do you mean by notification? If you mean that the user should be notified in the instance when someone creates / updates / deletes your models - you will need to have either server side events or websockets to communicate with the frontend. You could also poll

Re: How to create an individual instagram message into threads?

2023-08-28 Thread 'Steven Mapes' via Django users
I've not used that app but creating email of messaging chains is quite easy. How I normally do it is to generate a unique identifier by using a uuid4 plus some custom values when a new thread/conversation is created and then this is passed and maintained during replies. There's probably

How to create an individual instagram message into threads?

2023-08-27 Thread Ram
Hi, We are using Instagram clone messaging in our ecommerce application where users contact each other about market place item (sell/buy items). Once the messaging started between two users on an item 1. we want to keep the further messaging regarding that item to be continued like an email

Re: How to access gmail

2023-08-27 Thread Carl Karsten
Assuming the question is: "How do I send mail using my gmail account?" ret = connection.send_messages([email]) https://github.com/CarlFK/veyepar/blob/master/dj/scripts/email_ab.py#L140 In my local_settings.py: EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_

Re: How to access gmail

2023-08-27 Thread 'Kasper Laudrup' via Django users
On 26/08/2023 13.59, TASLIMA S wrote: Dear friends, I am developing an email signature web application. How to access gmail mails to my application. https://developers.google.com/gmail/api/guides Kind regards, Kasper Laudrup -- You received this message because you are subscribed

How to access gmail

2023-08-26 Thread TASLIMA S
Dear friends, I am developing an email signature web application. How to access gmail mails to my application. -- 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, sen

Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-23 Thread ivan harold
https://stackoverflow.com/questions/14543824/django-get-notified-of-all-changes-in-database check this one out, you might find some hints or answers. On Tuesday, August 22, 2023 at 9:03:12 AM UTC-5 Byansi Samuel wrote: > My views > from django.shortcuts import render def

ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-22 Thread Byansi Samuel
My views from django.shortcuts import render def auto_notification(request): return render (request, "user/dashboard.html") My models from django.db import models from django.contrib.auth.models import User #articles model class Articles(models.Model): title = models.CharField(max_length=300)

لإRe: How is Django For Api book

2023-08-17 Thread abu yahya Diab
There's no book called *William S. * *Vincent - REST APIs with Django.* في الأربعاء، 16 أغسطس 2023 في تمام الساعة 4:50:59 م UTC+3، كتب ivan harold رسالة نصها: > *William S. **Vincent - REST APIs with Django* > > *I second this one this is a good read to boost your knowledge and > learnings.* >

Re: How is Django For Api book

2023-08-16 Thread ivan harold
*William S. **Vincent - REST APIs with Django* *I second this one this is a good read to boost your knowledge and learnings.* On Tuesday, August 15, 2023 at 4:30:50 PM UTC-5 Roy Lagg wrote: > > You could check out *William S. Vincent - REST APIs with Django. *The > book is easy to read and

Re: How to upload a folder in django?

2023-08-16 Thread ivan harold
just make sure to ink the path correctly. iex: ../page/page1/pag2/ etc.. On Monday, August 14, 2023 at 5:59:54 PM UTC-5 abu yahya Diab wrote: > Hi guys, I have a task to upload a folder in django. > So, what is the right way to do that? > and what if this folder has subfolder and these

Re: How is Django For Api book

2023-08-15 Thread Roy Lagg
You could check out *William S. Vincent - REST APIs with Django. *The book is easy to read and has industry-standard tips and guides. On Tuesday, August 15, 2023 at 1:59:53 AM UTC+3 abu yahya Diab wrote: > I have good knowledge in API, you can say beginner knowledge in API. > I'm trying to

How is Django For Api book

2023-08-14 Thread abu yahya Diab
I have good knowledge in API, you can say beginner knowledge in API. I'm trying to delve deeper in API, when I check the Django For Api book content, I noticed .that its not that professional book -- You received this message because you are subscribed to the Google Groups "Django users"

How to upload a folder in django?

2023-08-14 Thread abu yahya Diab
Hi guys, I have a task to upload a folder in django. So, what is the right way to do that? and what if this folder has subfolder and these subfolders have subfolders. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: how to solve please help me

2023-08-10 Thread Kani Sbt
i solved that , i deleted all the databases and makemigrations and migrate and all was done good On Thu, 10 Aug 2023 at 18:12, Mz Gz wrote: > Maybe you referenced another model in your model and the referenced model > is no more there or its name changed > > On Thu, 10 Aug 2023, 2:10 pm Kani

Re: how to solve please help me

2023-08-10 Thread Mz Gz
Maybe you referenced another model in your model and the referenced model is no more there or its name changed On Thu, 10 Aug 2023, 2:10 pm Kani Sbt, wrote: > django.db.migrations.exceptions.InconsistentMigrationHistory: Migration > admin.0001_initial is applied before its dependency

how to solve please help me

2023-08-10 Thread Kani Sbt
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency lottyapp.0001_initial on database 'default'. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: how to convert to Django 3 or 4

2023-06-12 Thread 'Steven Mapes' via Django users
ep the same project then upgrade in stages. The fact >> you're in 1.4 will make it hard and you'll need to do a lot of manual >> changes to get into 1.8 so starting new may well be quicker. If you did >> upgrade then I'd go 1.8 to 1.11, 2.2, 3.2 and finally 4.2. >> >> Branc

Re: how to convert to Django 3 or 4

2023-06-09 Thread 'Steven Mapes' via Django users
act you're in 1.4 will make it hard and you'll need to do a lot of manual changes to get into 1.8 so starting new may well be quicker. If you did upgrade then I'd go 1.8 to 1.11, 2.2, 3.2 and finally 4.2. Branch the code using version control and see how bad it is but it'll depend on the project. I

Re: how to convert to Django 3 or 4

2023-06-08 Thread אורי
Hi, I think you can try to upgrade LTS to LTS. That is, upgrade to the next LTS, then the next LTS, and not directly to Django 4.2. With each LTS check that the site is working. And also, I would recommend using the latest Django release only 6 months after the initial release, because all your

Re: how to convert to Django 3 or 4

2023-06-08 Thread 'Steven Mapes' via Django users
I've used it to go from Django 3 to 4 and to move a project from 1.11 to 2.2. It doesn't do everything for you but it's a great start. I've personally moved from 1.8 through to 4.2.2 but that was during their development lifecycle. Moving up to 1.7 and then 1.7 to 1.8 and 1.8 to 1.11 and 1.11 to

Re: how to convert to Django 3 or 4

2023-06-08 Thread Rogério Carrasqueira
Hey Steven! Thanks for this information, do you have tried it before? I would like to move from 1.4 to lastest, do you think that is it possible? Thanks Em quarta-feira, 7 de junho de 2023 às 11:52:35 UTC-3, Steven Mapes escreveu: > I'd suggest looking into using Adam Johnson's

Re: how to convert to Django 3 or 4

2023-06-07 Thread 'Steven Mapes' via Django users
I'd suggest looking into using Adam Johnson's Django-Upgrade told -https://github.com/adamchainz/django-upgrade it will help you move between versions On Tuesday, 6 June 2023 at 15:24:36 UTC+1 Paul Haguet wrote: > There is a lot of function who can change. > >

Re: how to convert to Django 3 or 4

2023-06-03 Thread Shams Ulhaq
Just need to change url import from django.urls import include, re_path as url On Sat, 3 Jun 2023, 12:32 David Nugent, wrote: > nppe url is obsolete and removed in 4.x. > > You can use re_path, which is a kind of replacement but even then you will > need to adjust the regex in many cases. > >

Re: how to convert to Django 3 or 4

2023-06-03 Thread David Nugent
nppe url is obsolete and removed in 4.x. You can use re_path, which is a kind of replacement but even then you will need to adjust the regex in many cases. The best approach is to understand what the url() is doing, and replicate the same using path(). Once you do, the conversions should be more

Re: how to convert to Django 3 or 4

2023-06-02 Thread Mike Dewhirst
On 3/06/2023 11:57 am, john fabiani wrote: aware there is no longer the "patterns" urlpatterns = [     ... ] It is just a list nowadays. -- Signed email is an absolute defence against phishing. This email has been signed with my private key. If you import my public key you can automatically

Re: how to convert to Django 3 or 4

2023-06-02 Thread carlos
maybe maybe this app hepl you i don't used never but a read this good, but i don't know is helped you https://github.com/adamchainz/django-upgrade On Fri, Jun 2, 2023 at 8:38 PM Mike Dewhirst wrote: > On 3/06/2023 7:20 am, john fabiani wrote: > > Hi everyone, > > I am tasked with

Re: how to convert to Django 3 or 4

2023-06-02 Thread Mike Dewhirst
On 3/06/2023 7:20 am, john fabiani wrote: Hi everyone, I am tasked with updating/upgrading a very old Django web site - I believe it is 1.7.  I need convert and need what is required. Thanks in advance. I need to convert the following: Because all your urls are regular expressions, you

Re: how to convert to Django 3 or 4

2023-06-02 Thread Muhammad Juwaini Abdul Rahman
I think Django 4 still have backward compatibility with `url` although `path` is preferable. You can try to `runserver` in your local, upgrade your django version in your virtualenv to version 4 and troubleshoot the error messages (if any) one by one. On Sat, 3 Jun 2023 at 05:20, john fabiani

Re: how to convert to Django 3 or 4

2023-06-02 Thread john fabiani
Thanks for taking the time. I'm hoping someone will take the time to explain how to replace the old code.  As you might be aware there is no longer the "patterns".  So I am trying to determine how the url.py directs Django to the correct view? Johnf On 6/2/23 6:12 PM, David Nugen

Re: how to convert to Django 3 or 4

2023-06-02 Thread David Nugent
I have been through the experience of moving existing Django 1.5 app to 3.2 a couple years ago. Without doubt, the path of least resistance is to rebuild the site from scratch. Start with the latest release (ie. 4.2 as of today). You'll have the apps already defined and these have a blueprint.

how to convert to Django 3 or 4

2023-06-02 Thread john fabiani
Hi everyone, I am tasked with updating/upgrading a very old Django web site - I believe it is 1.7.  I need convert and need what is required. Thanks in advance. I need to convert the following: from django.conf.urls import patterns, include, url from django.contrib import admin from

How many related columns should you use on a model. Does it matter?

2023-05-22 Thread Ry
How many related columns should you use on a model. Does it matter? For example, say in a payroll application I have a model Company. Each Company has multiple model Employee. Each Employee has a Job. Does it matter if the final model, Job has a fk to both the Employee and Company model

Re: How to show image(static) files.

2023-05-02 Thread Byansi Samuel
or_message': > error_message}) > On Tuesday, May 2, 2023 at 9:19:15 AM UTC-5 Edit Sensei wrote: > >> How to show image(static) files in django HTML >> Actually i was created scan QRcode . I want to show QRcode. If it code is >> true then next page.. >> Else code

Re: How to show image(static) files.

2023-05-02 Thread William Nash (Bill)
= 'Invalid QR code' return render(request, 'error.html', {'error_message': error_message}) On Tuesday, May 2, 2023 at 9:19:15 AM UTC-5 Edit Sensei wrote: > How to show image(static) files in django HTML > Actually i was created scan QRcode . I want to show QRcode. If it code is

How to show image(static) files.

2023-05-02 Thread Edit Sensei
How to show image(static) files in django HTML Actually i was created scan QRcode . I want to show QRcode. If it code is true then next page.. Else code false then error... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Report a Django bug how

2023-04-14 Thread 'Kasper Laudrup' via Django users
On 14/04/2023 10.17, WILSON TALENGA wrote: Hey guys, i need help, i have created my django project, added students to the system as admin but they don't reflect when i run the server. what could the issue be. below is views.py and index.html Start a new thread instead of replying to a

Re: Report a Django bug how

2023-04-14 Thread WILSON TALENGA
Hey guys, i need help, i have created my django project, added students to the system as admin but they don't reflect when i run the server. what could the issue be. below is views.py and index.html On Friday, April 14, 2023 at 11:07:25 AM UTC+3 Kasper Laudrup wrote: > On 14/04/2023 01.06,

Re: Report a Django bug how

2023-04-14 Thread rhanzess guerrero
Hello bro, did you mean that you have an app with django and the images that you have in the app are not displayed El jue, 13 abr 2023 a las 18:07, Michael Starr () escribió: > Hi, I double checked my code and Django is not displaying images. I'd like > to report the bug but I need to be a

Re: Report a Django bug how

2023-04-14 Thread Sebastian Jung
I have no Problem with Display Images. Most time i think this is a missconfiguration in settings.py Michael Starr schrieb am Fr., 14. Apr. 2023, 01:06: > Hi, I double checked my code and Django is not displaying images. I'd like > to report the bug but I need to be a django employee to do that.

Re: Report a Django bug how

2023-04-14 Thread 'Kasper Laudrup' via Django users
On 14/04/2023 01.06, Michael Starr wrote: Hi, I double checked my code and Django is not displaying images. I'd like to report the bug but I need to be a django employee to do that. So, if anyone knows anyone on linkedin that works for django, tell them images don't display (on an operating

Report a Django bug how

2023-04-13 Thread Michael Starr
Hi, I double checked my code and Django is not displaying images. I'd like to report the bug but I need to be a django employee to do that. So, if anyone knows anyone on linkedin that works for django, tell them images don't display (on an operating system). Michael -- You received this

Re: Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread PULKIT AGRAWAL
ss based view. >> >> Let me illustrate with an example: >> class UnitCreateView(CreateView): >> form_class = UnitCreationForm >> template_name = 'units_of_measurement/unit_create.html' >> success_url = reverse_lazy('units_of_measurement:unit_list') >> >

Re: Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread Sebastian Jung
n be over written in a > class based view. > > Let me illustrate with an example: > class UnitCreateView(CreateView): > form_class = UnitCreationForm > template_name = 'units_of_measurement/unit_create.html' > success_url = reverse_lazy('units_of_measurement:unit

Re: Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread Chetan Ganji
ment:unit_list') > > In the above class, can I know how many and what other fields such as > "form_class" are available to over-riding? I have checked the documentation > but have not found anything. Maybe its just me. > > Thanks in advance! > > Regards, > &

Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread PULKIT AGRAWAL
= 'units_of_measurement/unit_create.html' success_url = reverse_lazy('units_of_measurement:unit_list') In the above class, can I know how many and what other fields such as "form_class" are available to over-riding? I have checked the documentation but have not found anything. Maybe i

Re: How to get data from another function in view to show it on template ?

2023-04-04 Thread 'Kasper Laudrup' via Django users
On 03/04/2023 18.44, Ravindra Magar wrote: How to get data from another function in view to show it on a template? You call the function like you'd call any other function and pass the data in the context given to the template you want to render. Kind regards. Kasper Laudrup -- You

Re: How to get data from another function in view to show it on template ?

2023-04-04 Thread Shailesh Yadav
You can open ChatGPT and type the above question. I'll tell you in detail.Thanks. Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin] <https://in.linkedin.com/in/shailesh-yadav-b7ab89110> On Tue, Apr 4, 2023 at 10:13 PM Ravindra Magar wrote: > How to get data

How to get data from another function in view to show it on template ?

2023-04-04 Thread Ravindra Magar
How to get data from another function in view to show it on a template? -- 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-user

Re: How to link different apps into one main app

2023-03-24 Thread Chandresh . T
t; frontend or backend developing group he will be moved to that room >> respectively. >> >> So I thought that I can create 2 different apps one frontend and another >> backend then once logged in to the main app the user will be sent to the >> respective apps room. >

Re: How to link different apps into one main app

2023-03-24 Thread DOI TUYEN
nd another >> backend then once logged in to the main app the user will be sent to the >> respective apps room. >> >> I searched for how to do this on google, but there was no solution. So if >> you guys have any ideas please help me with this. >> >> T

Re: How to link different apps into one main app

2023-03-24 Thread MAINSTREET STUDIO
ps one frontend and another > backend then once logged in to the main app the user will be sent to the > respective apps room. > > I searched for how to do this on google, but there was no solution. So if > you guys have any ideas please help me with this. > > Thank you in advance

Re: How to link different apps into one main app

2023-03-24 Thread Vishesh Mangla
group he will be moved to that room respectively. > > So I thought that I can create 2 different apps one frontend and another > backend then once logged in to the main app the user will be sent to the > respective apps room. > > I searched for how to do this on google, but there was no

How to link different apps into one main app

2023-03-24 Thread Chandresh . T
backend then once logged in to the main app the user will be sent to the respective apps room. I searched for how to do this on google, but there was no solution. So if you guys have any ideas please help me with this. Thank you in advance! -- You received this message because you

Re: how i use django in blockchain.

2023-03-23 Thread Mike Dewhirst
transaction hash to user who filled the FIR form. how i can integrate brownie and django so that i can show transaction hash to user ?? 1. Put the hash into the context dict in your view for example, context["hash"] = r"""{0}""".format(hash) 2. Insert the

how i use django in blockchain.

2023-03-23 Thread Shubham Lahane
im currently working on my BE project. my project topic is 'secure EFIR using Blockchain'. actually im working on wesbite that is decentralized in nature. once user fill the FIR form, in backend smart contracts will run and i want to show transaction hash to user who filled the FIR form. how i

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

2023-03-13 Thread Benjamin Telford
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 "Django users" group. To unsubscribe from this group and stop receiving emails from it,

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 G

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 ecomme

Re: How to fight Russia in America

2023-03-13 Thread muhammad salah
Not everyone here is American we don't care about fighting Russia this is a group about django so just shut up On Mon, 13 Mar 2023, 00:20 Michael Starr, wrote: > Russia's influence in America is powerful. How do you fight it? > > -- > You received this message because you ar

Re: How to fight Russia in America

2023-03-12 Thread Jacob Greene
; >> On Sunday, March 12, 2023 at 3:37:58 PM UTC-7 Sebastian Jung wrote: >> >>> Please stop this propaganda... This haven't nothing to do with django >>> >>> Michael Starr schrieb am So., 12. März 2023, 23:20: >>> >>>> Russia's influenc

Re: How to fight Russia in America

2023-03-12 Thread Jacob Greene
stop this propaganda... This haven't nothing to do with django >> >> Michael Starr schrieb am So., 12. März 2023, 23:20: >> >>> Russia's influence in America is powerful. How do you fight it? >>> >>> -- >>> You received this message because you are s

Re: How to get fresh air

2023-03-12 Thread Dylan Reinhold
Just go away. On Sun, Mar 12, 2023, 15:52 Michael Starr wrote: > How do you get fresh air in your house? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving ema

How to get fresh air

2023-03-12 Thread Michael Starr
How do you get fresh air in your house? -- 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

  1   2   3   4   5   6   7   8   9   10   >