Re: How to plot range vs array

2024-09-20 Thread Nilesh Mishra
On Tue, Sep 17, 2024 at 3:57 PM Nilesh Mishra wrote: > There is no output for this ? > > Import matplotlib.pyplot as plt > Import Numpy as np > > Qi=np.linspace(0,20,5) > QHc=["980","940","920","900","890"] > > # this pair should form and plotted > # (0,980),(5,940),(10,920),(15,900),(20,890) >

Re: How to install pip on windos10

2024-09-18 Thread manohar chundru
yes it correct but some times I got issue On Wed, 18 Sept 2024, 3:11 am Kiotseaeton Lancaster, wrote: > I use wsl for all my dev needs on windows. > To install pip, simply: sudo apt install python3-pip > > On Sat, Sep 14, 2024 at 12:57 PM Nilesh Mishra > wrote: > >> Plz help >> >> I am new to p

Re: How to install pip on windos10

2024-09-17 Thread Kiotseaeton Lancaster
I use wsl for all my dev needs on windows. To install pip, simply: sudo apt install python3-pip On Sat, Sep 14, 2024 at 12:57 PM Nilesh Mishra wrote: > Plz help > > I am new to python > > On Sat, Sep 14, 2024, 13:22 RANGA BHARATH JINKA > wrote: > >> If you integrate sentry for capturing error l

How to plot range vs array

2024-09-17 Thread Nilesh Mishra
There is no output for this ? Import matplotlib.pyplot as plt Import Numpy as np Qi=np.linspace(0,20,5) QHc=["980","940","920","900","890"] # this pair should form and plotted # (0,980),(5,940),(10,920),(15,900),(20,890) Plt.plot (Qi,QHc) Plt.grid(True) Plt.show() On Mon, Sep 16, 2024, 11:45

Re: How to generate plot

2024-09-15 Thread Vishesh Mangla
Use matplotlib and numpy, ask chatgpt On Mon, 16 Sept 2024, 09:40 Nilesh Mishra, wrote: > Y= a+bX2 > > a and b are constant > > Where X is a variable and user input in the range 0 to 400 > > On Sun, Sep 15, 2024, 19:23 Nilesh Mishra > wrote: > >> It's done thanks >> >> On Sun, Sep 15, 2024, 08:

How to generate plot

2024-09-15 Thread Nilesh Mishra
Y= a+bX2 a and b are constant Where X is a variable and user input in the range 0 to 400 On Sun, Sep 15, 2024, 19:23 Nilesh Mishra wrote: > It's done thanks > > On Sun, Sep 15, 2024, 08:11 Herman Afandi wrote: > >> You can download vscode or pycharm the community edition. I don't think >> you

Re: How to install pip on windos10

2024-09-15 Thread Nilesh Mishra
It's done thanks On Sun, Sep 15, 2024, 08:11 Herman Afandi wrote: > You can download vscode or pycharm the community edition. I don't think > you can install pip inside windows 10. > > On Sun, Sep 15, 2024 at 2:30 AM Anish Kumar wrote: > >> Creating a Virtual Environment and Installing Packages

Re: How to install pip on windos10

2024-09-14 Thread Nilesh Mishra
Thanks for your help On Sun, Sep 15, 2024, 00:00 Anish Kumar wrote: > Creating a Virtual Environment and Installing Packages > Introduction > A virtual environment is a self-contained environment for Python projects, > isolating your project's dependencies from other projects on your system. > T

Re: How to install pip on windos10

2024-09-14 Thread Herman Afandi
You can download vscode or pycharm the community edition. I don't think you can install pip inside windows 10. On Sun, Sep 15, 2024 at 2:30 AM Anish Kumar wrote: > Creating a Virtual Environment and Installing Packages > Introduction > A virtual environment is a self-contained environment for Py

Re: How to install pip on windos10

2024-09-14 Thread Anish Kumar
Creating a Virtual Environment and Installing Packages Introduction A virtual environment is a self-contained environment for Python projects, isolating your project's dependencies from other projects on your system. This helps prevent conflicts and ensures that your project uses the exact versions

How to install pip on windos10

2024-09-14 Thread Nilesh Mishra
Plz help I am new to python On Sat, Sep 14, 2024, 13:22 RANGA BHARATH JINKA wrote: > If you integrate sentry for capturing error logs , then check there > > On Sat, 14 Sept, 2024, 8:02 am Tarun Sharma, wrote: > >> Hello Ranga >> >> Thanks for the reply, I already tried these same steps which y

Re: How to import UGETTEXT_LAZY ON DJANGO 4.0

2024-08-29 Thread joseph Nwani
ngallen2 >> >> >> >> *From:* django...@googlegroups.com *On >> Behalf Of *David Nugent >> *Sent:* 10 December 2021 07:50 >> *To:* django...@googlegroups.com >> *Subject:* Re: How to import UGETTEXT_LAZY ON DJANGO 4.0 >> >> >> >

Re: how to represent postgresql json field in ninja schema?

2024-08-18 Thread Pandiya rajan
from ninja import Schema from typing import Dict, Any class Origin(Schema): orgname: str orgaddr: str orgdetails: Dict[str, Any] can you try this On Sat, Aug 17, 2024 at 3:34 PM Krishnakant Mane wrote: > Helo. > > I guess the question is obvious. > > I have json field in my post

how to represent postgresql json field in ninja schema?

2024-08-17 Thread Krishnakant Mane
Helo. I guess the question is obvious. I have json field in my postgresql table and django orm has no issues with it. But I am not able to find out oa way to use it in my schema in ninja. classorgin(Schema): orgname: str orgaddr: str orgdetails: json This does not work. Any hint? Regards. -

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

2024-07-26 Thread Krishnakant Mane
Hello. I have decided to use django ninja for its simplicity and performance. However I have one specific confusion. Suppose I have an app with a models.py, schemas.py and all my APIs in one package called apis.     Suppose in the apis package along with __init__.py I have api_accounts.py,

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. I

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 us

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: res

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 D

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 do

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&

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
Hello, thanks for your reply! The DATETIME_FORMAT setting of Django uses format strings that are incompatible with JS. E.g the default DATETIME_FORMAT value in Django is 'N j, Y'. You can check the allowed format strings in Django documentation

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 rendering

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 for

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 D

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 d

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 d

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 Emai

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 EMAIL_HOS

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 dashbo

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, send an

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
tion and some > of those may be culprits too of course. > > I suppose my main question is "how to test bugs that occur due to > concurrency?" > > -Josh > > -- > You received this message because you are subscribed to the Google Groups > "Django users&qu

How to fix deadlocks with tests?

2023-10-27 Thread Joshua Gardner
ould be used to replicate the deadlocks and then fix them? I use pytest-django and I use MySQL in my tests; there's a lot of raw SQL and even some views and stored procedures (😱) in this application and some of those may be culprits too of course. I suppose my main question is "how to te

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, 2

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 feat

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 mes

How to build table of references to other tables

2023-09-21 Thread Glenn Weaver
I need to call specific fields from different tables, and save the list of calls for future use. The calls are in a specific order. For example, I have 4 tables. I need to call items 1, 3, 5 from table 1, items 2, 3 from table 2, item 7 from table 3, and items 8, 9 from table 4. The items need

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

2023-09-08 Thread GP
HI, I am using SyncConsumer with HTTP protocol (not WebSocket ) for background work by referring this document Worker and Background Tasks — Channels 4.0.0 documentation . I have seen there are connect, disconnect & receive method

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 general wh

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 f

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 create

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 15mi

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 th

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 someth

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 thread

Re: How to access gmail

2023-08-27 Thread Carl Karsten
27; EMAIL_PORT = 587 EMAIL_HOST_USER="c...@nextdayvideo.com" EMAIL_HOST_PASSWORD="mypassword" On Sun, Aug 27, 2023 at 1:23 PM 'Kasper Laudrup' via Django users wrote: > > On 26/08/2023 13.59, TASLIMA S wrote: > > > > Dear friends, > > I am devel

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 to the

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, send an

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 auto_notification(reque

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) da

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 subfolders

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 group

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 Sbt

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 lottyapp.00

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 g

Re: how to convert to Django 3 or 4

2023-06-12 Thread 'Steven Mapes' via Django users
Ah Python 2.7, you'll need to upgrade through to at least 3.8 so unless it's a huge project where you have time to upgrade through the Django Versions and different versions of Python as you go, you may just want to create a new project and lift the code as you go. On Friday, 9 June 2023 at 15:

Re: how to convert to Django 3 or 4

2023-06-08 Thread 'Steven Mapes' via Django users
If you want to go directly then start a new project and "lift and shift" code fixing and updating as you go. Depending on the size of the project and the complexity of the processes it may be the fastest way to do it. If you want to keep the same project then upgrade in stages. The fact you're in

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 de

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 2

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 Django-Upgrade

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. > > https://docs.djangoproject.com/en

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 d

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 updating/upgrad

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 ca

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 wr

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

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. You

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 django.c

Re: How to show image(static) files.

2023-05-02 Thread Byansi Samuel
r(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

Re: How to show image(static) files.

2023-05-02 Thread William Nash (Bill)
error_message = '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 QR

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: Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread PULKIT AGRAWAL
Thanks Chetan for your response On Tuesday, 11 April 2023 at 19:18:11 UTC+5:30 Chetan Ganji wrote: > Hello Pulkit, > Information you are asking is not readily available. It will become clear > to you as you start writing code. > > However, you can use below options to make your life easier. > >

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

2023-04-11 Thread Sebastian Jung
Hello Plkt i have no idea what you mean and what is the aim sorry PULKIT AGRAWAL schrieb am Di., 11. Apr. 2023, 14:44: > Hello Everyone, > > I am very new to Django and am still learning the ropes. If anyone can > point me in the right direction, I will be thankful to you. > > My problems is as

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

2023-04-11 Thread Chetan Ganji
Hello Pulkit, Information you are asking is not readily available. It will become clear to you as you start writing code. However, you can use below options to make your life easier. 1. https://ccbv.co.uk 2. dir and callable methods can help you get more clarity. I hope it helps you. Reg

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

2023-04-11 Thread PULKIT AGRAWAL
Hello Everyone, I am very new to Django and am still learning the ropes. If anyone can point me in the right direction, I will be thankful to you. My problems is as follows: 1. I have learned about class based views and have started using them 2. But every now and then I come across a new field

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 -

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

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
the >> 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 roo

Re: How to link different apps into one main app

2023-03-24 Thread DOI TUYEN
end 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. >> >&

Re: How to link different apps into one main app

2023-03-24 Thread MAINSTREET STUDIO
fferent 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 solution. So if > you guys have any ideas please help me with this. > > Thank you

Re: How to link different apps into one main app

2023-03-24 Thread Vishesh Mangla
oup 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 w

How to link different apps into one main app

2023-03-24 Thread Chandresh . T
other 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 yo

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: How to fight Russia in America

2023-03-12 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 are subscribed to the G

Re: How to fight Russia in America

2023-03-12 Thread Jacob Greene
Get bent my guy. On Sun, Mar 12, 2023, 11:59 PM Jacob Greene wrote: > Lmao wtf is this troll > > On Sun, Mar 12, 2023, 5:51 PM Michael Starr wrote: > >> I'll roll over and die then. Thank you for contributing to the Russian >> cause. My parents would be proud. >> >> On Sunday, March 12, 2023 at

Re: How to fight Russia in America

2023-03-12 Thread Jacob Greene
Lmao wtf is this troll On Sun, Mar 12, 2023, 5:51 PM Michael Starr wrote: > I'll roll over and die then. Thank you for contributing to the Russian > cause. My parents would be proud. > > On Sunday, March 12, 2023 at 3:37:58 PM UTC-7 Sebastian Jung wrote: > >> Please stop this propaganda... This

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 emails from it, send an > email

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 discussion on the

Re: How to fight Russia in America

2023-03-12 Thread Michael Starr
I'll roll over and die then. Thank you for contributing to the Russian cause. My parents would be proud. 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,

Re: How to fight Russia in America

2023-03-12 Thread Sebastian Jung
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 influence in America is powerful. How do you fight it? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. >

  1   2   3   4   5   6   7   8   9   10   >