Is it possible to authenticate an already existing user model created from inspect_db ?

2024-05-27 Thread utibe solomon
Hey Guys I've been trying to figure out a way to authenticate an auto generated user model and its impossible to do that unless the model has permission mixins and abstractuser .So how can i still authenticate an autogenerated user model without necessarily making migrations to that database

pub_date field is not visible in admin panel, even after configuring the app made migrations i tried every way possible from my side

2023-05-31 Thread Likhith K.P.
from django.db import models # Create your models here. class Question(models.Model): question_text = models.CharField(max_length = 500) pub_date = models.DateTimeField(auto_now_add = True) def __str__(self): return self.question_text class Choice(models.Model):

Why isn't it possible to delete sliced querysets?

2023-01-29 Thread M T
Hi all, I was wondering about the technical reasons why deleting sliced querysets is prohibited (the error thrown is Cannot use 'limit' or 'offset' with delete()). This makes it really complex when one wants to delete huge amounts of data (think millions of rows): The only supported options

Re: save() method not working in shell. What are possible causes?

2023-01-19 Thread Artur Rączka
Ok. I solved the problem myself. The pre_save signal was changing my output every time I used save() method. W dniu śr., 18.01.2023 o 23:56 Artur Rączka napisał(a): > Hello guys, > > What am I missing or doing wrong? > > >>> dublin.price > 40 > >>> dublin.price = 100 > >>> dublin.price > 100 >

save() method not working in shell. What are possible causes?

2023-01-18 Thread Artur Rączka
Hello guys, What am I missing or doing wrong? >>> dublin.price 40 >>> dublin.price = 100 >>> dublin.price 100 >>> dublin.save() >>> dublin.price 40 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

RE: Possible bug in runserver

2022-11-11 Thread Mike Dewhirst
Try using the inline argument --settings when executing runserver--(Unsigned mail from my phone) Original message From: Matteo Sani Date: 12/11/22 05:38 (GMT+10:00) To: Django users Subject: Possible bug in runserver Hello, I wanted to run Django runserver with custom

Possible bug in runserver

2022-11-11 Thread Matteo Sani
Hello, I wanted to run Django runserver with custom settings defined in proj/mysettings.py. So I exported the env variable DJANGO_SETTINGS_MODULE to point to the custom settings file and then I ran manage.py runserver … The printout was showing that Django was still using the default

Answer me as soon as possible?

2022-07-12 Thread Abhinandan K
Is anybody know how to install CLI tool with brew in Django -- 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

Re: Fwd: Answer me as soon as possible?

2022-07-12 Thread 'Kasper Laudrup' via Django users
On 12/07/2022 09.43, Abhinandan K wrote: Is anybody know how to install CLI tool with brew in Django Reading this would help: http://www.catb.org/~esr/faqs/smart-questions.html Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups

Re: Answer me as soon as possible?

2022-07-12 Thread Mr.Teapot
Here you have an official document on how to create a formula(package definition) https://docs.brew.sh/Formula-Cookbook wtorek, 12 lipca 2022 o 10:36:48 UTC+2 abhin...@snakescript.com napisał(a): > yes > > On Tue, Jul 12, 2022, 1:45 PM Mr.Teapot wrote: > >> Do you want to install this script

Re: Answer me as soon as possible?

2022-07-12 Thread Mr.Teapot
Do you want to install this script using brew? wtorek, 12 lipca 2022 o 09:53:12 UTC+2 abhin...@snakescript.com napisał(a): > # importing required modules > import argparse > > # create a parser object > parser = argparse.ArgumentParser(description = "An addition program") > > # add argument >

Re: Answer me as soon as possible?

2022-07-12 Thread Abhinandan K
# importing required modules import argparse # create a parser object parser = argparse.ArgumentParser(description = "An addition program") # add argument parser.add_argument("add", nargs = '*', metavar = "num", type = int, help = "All the numbers separated by spaces will be added.") # parse

Re: Answer me as soon as possible?

2022-07-12 Thread Mr.Teapot
l 12, 2022 at 1:13 PM > Subject: Fwd: Answer me as soon as possible? > To: > > > > > -- Forwarded message - > From: Abhinandan K > Date: Tue, Jul 12, 2022 at 1:02 PM > Subject: Answer me as soon as possible? > To: > > > Is anybody kn

Fwd: Answer me as soon as possible?

2022-07-12 Thread Abhinandan K
-- Forwarded message - From: Abhinandan K Date: Tue, Jul 12, 2022 at 1:13 PM Subject: Fwd: Answer me as soon as possible? To: -- Forwarded message - From: Abhinandan K Date: Tue, Jul 12, 2022 at 1:02 PM Subject: Answer me as soon as possible

Fwd: Answer me as soon as possible?

2022-07-12 Thread Abhinandan K
-- Forwarded message - From: Abhinandan K Date: Tue, Jul 12, 2022 at 1:02 PM Subject: Answer me as soon as possible? To: Is anybody know how to install CLI tool with brew in Django -- You received this message because you are subscribed to the Google Groups "Django

Possible bug with Q objects

2022-05-19 Thread Simon Van De Keer
Hi, I ran into an issue when querying using Q objects where I got some behaviour which I didn't expect, and I'd like to get some input on whether this behaviour is intended or not. *Assume an app testcase with the following code in a models.py file:* *from django.db import models* *class

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-14 Thread Mike Dewhirst
From: Antonis Christofides <anto...@antonischristofides.com> Date: 15/4/22 01:26 (GMT+10:00) To: django-users <django-users@googlegroups.com> Subject: Re: Possible Django Admin or auth bug or Mozilla bug I haven't tried it, but I have a few observations on your t

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-14 Thread Antonis Christofides
I haven't tried it, but I have a few observations on your template code. First, it would be better to use "{% static %}" instead of hardcoding the url to the static files. Second, "{% blcok extrastyle %}" is obviously wrong for this, it should be extrajs.

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-13 Thread Mike Dewhirst
On 14/04/2022 11:36 am, Mike Dewhirst wrote: Thanks Antonis OK - the problem has two workarounds. One is to use Chrome. Two is https://code.djangoproject.com/ticket/33386 which suggests including some javascript to disable Firefox autocomplete ... $('form').attr('autocomplete',

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-13 Thread Mike Dewhirst
Thanks Antonis OK - the problem has two workarounds. One is to use Chrome. Two is https://code.djangoproject.com/ticket/33386 which suggests including some javascript to disable Firefox autocomplete ... $('form').attr('autocomplete', 'off').each(function () { this.reset(); }); ...

Re: Possible Django Admin or auth bug or Mozilla bug

2022-04-13 Thread Antonis Christofides
It happens here as well as far as I can see (tested on a Debian 11 server running Django 3.2.12). The "Chosen groups" box seems to be created by JavaScript; if I run it with JavaScript disabled then it doesn't exist. Apparently JavaScript creates the box and then populates it and accordingly

Possible Django Admin or auth bug or Mozilla bug

2022-04-13 Thread Mike Dewhirst
I don't know how long this has been happening for me. Happens on Windows 10 in Mozilla Firefox but not Chrome.  In the Admin User screen where there are two boxes of Groups labelled 'Available groups' and 'Chosen groups' with controls to move groups between boxes, everything seems to work

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-22 Thread bnmng
Fantastic! But now I wonder why it's not working on some of your browsers On Wednesday, September 22, 2021 at 4:18:14 AM UTC-4 nine...@gmail.com wrote: > Hi, > > Eureka!!! > Benjamin, you are right. I changed my browser and it worked. > > Thank for you advice. > > Best wishes, > Maria > > On

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-22 Thread Mariangeles Mendoza
Hi, Eureka!!! Benjamin, you are right. I changed my browser and it worked. Thank for you advice. Best wishes, Maria On Tuesday, September 21, 2021 at 9:41:18 AM UTC+2 Mariangeles Mendoza wrote: > Thank you very much!!! > > I will try other browsers. I have used Firefox and Brave. > No, I am

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-21 Thread Mariangeles Mendoza
Thank you very much!!! I will try other browsers. I have used Firefox and Brave. No, I am not using other custom widget. Thanks again, Maria On Monday, September 20, 2021 at 1:59:25 PM UTC+2 bnmng wrote: > Hi. I don't see anything in your code samples that would cause this. > One line in

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-20 Thread bnmng
Hi. I don't see anything in your code samples that would cause this. One line in admin.py caused the server to stop because of the extra parenthesis, and the default for status should be 'r' instead of 'refereed', but those don't cause the problem you're describing. Maybe a browser issue?

django-admin doesn't display choices and it's not possible to select one

2021-09-13 Thread Mariangeles Mendoza
Hi, I'm very new in Django. I'm making a cv, but I don't get select a choice through the django-admin web. I've searched solutions in the community but I cant't solve it. My code is: *Models.py* class Article(models.Model): year = models.PositiveIntegerField(

Re: getattr on related not possible?

2021-04-15 Thread Sebastian Jung
I have found the right solution. Thanks sebasti...@gmail.com schrieb am Do., 15. Apr. 2021, 18:07: > Hello, > > i have following: > > models.py: > > from django.db import models > > class Tabs(models.Model): > id = models.AutoField(primary_key=True) > def __str__(self): > return

getattr on related not possible?

2021-04-15 Thread sebasti...@gmail.com
Hello, i have following: models.py: from django.db import models class Tabs(models.Model): id = models.AutoField(primary_key=True) def __str__(self): return self.name class Box(models.Model): id = models.AutoField(primary_key=True) tabslink = models.ForeignKey(Tabs,

Re: IS it possible to debug Django with Apache and mod_wsgi

2021-02-13 Thread yashwanth .k
eryone, >>>> I was wondering can anyone point me to a document describing how to >>>> setup debugging using any IDE (VS Code, PyCharm, etc) or at least from >>>> console when using Django with Apache and mod_wsgi? Or if it's not possible >>>> please let me know

Re: IS it possible to debug Django with Apache and mod_wsgi

2021-02-12 Thread Ognjen Bjelica
me to a document describing how to >>> setup debugging using any IDE (VS Code, PyCharm, etc) or at least from >>> console when using Django with Apache and mod_wsgi? Or if it's not possible >>> please let me know so I don't waste any more time. >>> &

Re: IS it possible to debug Django with Apache and mod_wsgi

2021-02-12 Thread Rob Wilkinson
at least from console > when using Django with Apache and mod_wsgi? Or if it's not possible please > let me know so I don't waste any more time. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group

Re: IS it possible to debug Django with Apache and mod_wsgi

2021-02-12 Thread Rob Wilkinson
gt; I was wondering can anyone point me to a document describing how to setup >> debugging using any IDE (VS Code, PyCharm, etc) or at least from console >> when using Django with Apache and mod_wsgi? Or if it's not possible please >> let me know so I don't waste any more time. &

IS it possible to debug Django with Apache and mod_wsgi

2021-02-12 Thread Ognjen B.
Hi everyone, I was wondering can anyone point me to a document describing how to setup debugging using any IDE (VS Code, PyCharm, etc) or at least from console when using Django with Apache and mod_wsgi? Or if it's not possible please let me know so I don't waste any more time. Thanks -- You

Admin - is it possible to make fieldsets description dynamic

2021-01-12 Thread Mike Dewhirst
In the Django 2.2 Admin, the description in fieldsets is very useful for providing advice to a user. However, in one of my models there are now a couple of "states" in which it could be and each really calls for a different piece of advice. I know in ModelAdmin.fieldsets I can do

Possible Bug: when using memcache backend, fragment templates aren't stored

2021-01-11 Thread Leon Albrecht
So, in my Project I have template that generates a lot of prcedual html (for loop with about 150 entries at once) so cahcing that "snippet" is a reasonable choice, but after activating caching for that project and this template, I still got consistent long generation times, so I looked in the

Re: is a custom model even possible

2020-12-07 Thread Ryan Nowakowski
On Sun, Dec 06, 2020 at 06:00:06PM -0800, Joel T wrote: > I'm new here and have zero clues as to how to create a model with methods > that can be overridden by each instance . i.e Each instance will provide > its own methods that will be called when a certain event is triggered. Hey Joel, An

Re: is a custom model even possible

2020-12-07 Thread Charles Freeman
Yes it is possible to create a custom model a u have to do is override the default django models On Mon, Dec 7, 2020, 03:57 Joel T <7thog...@gmail.com> wrote: > Hi everyone, > I'm new here and have zero clues as to how to create a model with methods > that can be overridden b

is a custom model even possible

2020-12-06 Thread Joel T
Hi everyone, I'm new here and have zero clues as to how to create a model with methods that can be overridden by each instance . i.e Each instance will provide its own methods that will be called when a certain event is triggered. -- You received this message because you are subscribed to the

Re: Is it possible to use REST API on Django template ?

2020-12-03 Thread Suhaib Ali
you can use jquery to fetch api calls On Wed, Nov 25, 2020 at 7:49 PM Aman Modi wrote: > > > Hello Django lovers. > > I want to use REST API on Django template but i have no idea how can i do > that. > I want to use same API on android app and Django template. > > Any suggestion . > > Thanks

Re: Is it possible to use REST API on Django template ?

2020-11-30 Thread Kris A. Stern
Hey, Guess you are making some baseless assumptions about the so-called templates... Can the original poster of the question please clarify what you really meant before we get more and more confused? K.S. On Tue, 1 Dec 2020 at 10:03, Liu Zheng wrote: > Hi, > > Guys earlier have provided

Re: Is it possible to use REST API on Django template ?

2020-11-30 Thread Liu Zheng
Hi, Guys earlier have provided useful links for consuming APIs. Just want to emphasize some concepts between server-side and client-side codes. A django template is rendered into a page on the *server side*. That means, the server does the work and prepares the html content before sending it to

Re: Is it possible to use REST API on Django template ?

2020-11-29 Thread sree e
Hi find this link https://github.com/sumasreeeduru/Textyfi And go through "api" app , where you will find adding the api in easy way. On Sunday, November 29, 2020 at 12:36:44 PM UTC+5:30 bharath...@gmail.com wrote: > Hi > Use JavaScript or jQuery to call APIs in frontend of Django template.

Re: Is it possible to use REST API on Django template ?

2020-11-28 Thread RANGA BHARATH JINKA
Hi Use JavaScript or jQuery to call APIs in frontend of Django template. You can use fetch API using vanilla JavaScript. You can perform all CRUD operations. All the best  On Sun, 29 Nov 2020, 11:57 am Aman Modi, wrote: > I know how to create API but i just want to know how to use in Django >

Re: Is it possible to use REST API on Django template ?

2020-11-28 Thread Aman Modi
I know how to create API but i just want to know how to use in Django template. On Wednesday, November 25, 2020 at 8:07:47 PM UTC+5:30 omkar...@gmail.com wrote: > Creating REST API in Django is similar to any app on Django. All you need > to do is, install the djangorestframework library, and

Re: Is it possible to use REST API on Django template ?

2020-11-26 Thread Venu Gopal
Yes, it is possible. Below is the documentation. we will use serialization to get a django rest API. https://docs.djangoproject.com/en/3.1/topics/serialization/ On Wed, Nov 25, 2020 at 7:48 PM Aman Modi wrote: > > > Hello Django lovers. > > I want to use REST API on Django temp

Re: Is it possible to use REST API on Django template ?

2020-11-25 Thread Kris A. Stern
Maybe this article from JetBrains can help: https://blog.jetbrains.com/pycharm/2017/01/webinar-adding-a-rest-api-to-a-django-application/ Hope that helps! Cheers, K.S. On Thu, 26 Nov 2020 at 00:20, Farai M wrote: > Very possible you can create urls for API with the rest framew

Re: Is it possible to use REST API on Django template ?

2020-11-25 Thread Farai M
Very possible you can create urls for API with the rest framework then create other urls for your templates .Just install the django rest framework you are good to go. On Wed, Nov 25, 2020, 4:18 PM Aman Modi wrote: > > > Hello Django lovers. > > I want to use REST API on Django

Re: Is it possible to use REST API on Django template ?

2020-11-25 Thread Devender Kumar
Use ajax with django rest framework On Wed, 25 Nov, 2020, 8:07 pm Omkar Parab, wrote: > Creating REST API in Django is similar to any app on Django. All you need > to do is, install the djangorestframework library, and serialize your > models. > > YT video  > https://youtu.be/TmsD8QExZ84 > On

Re: Is it possible to use REST API on Django template ?

2020-11-25 Thread Omkar Parab
Creating REST API in Django is similar to any app on Django. All you need to do is, install the djangorestframework library, and serialize your models. YT video  https://youtu.be/TmsD8QExZ84 On Wed, Nov 25, 2020, 7:48 PM Aman Modi wrote: > > > Hello Django lovers. > > I want to use REST API

Is it possible to use REST API on Django template ?

2020-11-25 Thread Aman Modi
Hello Django lovers. I want to use REST API on Django template but i have no idea how can i do that. I want to use same API on android app and Django template. Any suggestion . Thanks and regard Aman Modi -- You received this message because you are subscribed to the Google Groups

Re: Is it possible to use the built-in LogEntry to track actions of every users not only in admin page?

2020-11-24 Thread shedd tutt
Check out this https://django-simple-history.readthedocs.io/en/latest/ On Tue, 24 Nov 2020, 14:11 Sujata Aghor wrote: > Hello Django lovers, > > I am looking for something to track the actions of all users on my website. > The LogEntry class tracks additions, changes, and deletions of objects >

Re: Is it possible to use the built-in LogEntry to track actions of every users not only in admin page?

2020-11-24 Thread Israel Adeyeye
Hey Sujata, I used this in my project, you can check it out here http://static.phxfeeds.com/commonShare?originUrl=https%3A%2F%2Fpypi.org%2Fproject%2Fdjango-user-tracking%2F On Tue, Nov 24, 2020, 12:11 PM Sujata Aghor wrote: > Hello Django lovers, > > I am looking for something to track the

Is it possible to use the built-in LogEntry to track actions of every users not only in admin page?

2020-11-24 Thread Sujata Aghor
Hello Django lovers, I am looking for something to track the actions of all users on my website. The LogEntry class tracks additions, changes, and deletions of objects done through the admin interface. Can we track other users' actions also in LogEntry? Any help is much appreciated. Any

not possible to delete if calling self.errors in a Form in InlineFormSet

2020-06-18 Thread Carles Pina i Estany
Hi, Yesterday and today I implemented something and I had a surprise. I'm explaining here with questions at the end but also in case that I might save some time to someone working with forms (if someone is going to try the same approach that I did and it doesn't work). What I want to do: the

Re: Possible Django bug I am considering raising

2020-06-09 Thread 'OwlHoot' via Django users
On Thursday, 4 June 2020 16:25:09 UTC+1, OwlHoot wrote: > > > I believe the issue I have enquired about on the following Stack Exchange > page : > > > https://stackoverflow.com/questions/62162288/baffling-error-filtering-django-objects-of-derived-class-by-values-in-foreign-ke > By adding some

Re: Possible Django bug I am considering raising

2020-06-05 Thread Ramiro Morales
Remember you can not juat open/report an issue and bisect the git commit which could have introduced the change in behavior, but also, if it gets confirmed as a real bug, you can fix it yourself so to not delay yourself in your current project. With the nice side effect that the fix will benefit

Re: Possible Django bug I am considering raising

2020-06-05 Thread René Fleschenberg
Hi, the code you posted on stackoverflow is not sufficient to reproduce the problem. It would be good to provide a minimal reproducible example (see also https://stackoverflow.com/help/minimal-reproducible-example). Regards, René -- You received this message because you are subscribed to the

Re: Possible Django bug I am considering raising

2020-06-05 Thread 'OwlHoot' via Django users
On Thursday, 4 June 2020 23:45:53 UTC+1, Tim Graham wrote: You can try to find the commit that introduced the issue: > https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression > I'm happy to try and do this, i.e. produce a simple test case that

Re: Possible Django bug I am considering raising

2020-06-04 Thread Tim Graham
You can try to find the commit that introduced the issue: https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression On Thursday, June 4, 2020 at 11:25:09 AM UTC-4, OwlHoot wrote: > > Hi all > > I believe the issue I have enquired about on the following

Possible Django bug I am considering raising

2020-06-04 Thread 'OwlHoot' via Django users
Hi all I believe the issue I have enquired about on the following Stack Exchange page : https://stackoverflow.com/questions/62162288/baffling-error-filtering-django-objects-of-derived-class-by-values-in-foreign-ke may well be a Django bug, or at the least no longer works with Django as this

Re: Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-30 Thread Tim Allen
Thanks for the reply, my friend. Unfortunately, no new middleware has been added. Some folks have said clearing the Django cache(s) worked, but it hasn't for me. I've long been a mod_wsgi user, but I think it is time to move on to gunicorn, so I've started moving in that direction rather than

Re: Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-16 Thread Jorge Gimeno
On Sat, May 16, 2020 at 12:06 PM Tim Allen wrote: > I posted this to Stack Overflow first, thinking it might be a problem with > `mod_wsgi`, but people using Gunicorn have seen the issue too. Here's a > link to the question on Stack Overflow: > > >

Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-16 Thread Tim Allen
I posted this to Stack Overflow first, thinking it might be a problem with `mod_wsgi`, but people using Gunicorn have seen the issue too. Here's a link to the question on Stack Overflow:

Re: Possible server attacks

2020-05-04 Thread Miracle
in.php, >>> /favicon.co >>> >>> >>> Please, what could be the problem? >>> >>> >>> >>> >>> >>> On Sun, 3 May 2020, 11:03 pm Motaz Hejaze, wrote: >>> >>>> I think you have a script somewhere

Re: Possible server attacks

2020-05-03 Thread Motaz Hejaze
;> /favicon.co >> >> >> Please, what could be the problem? >> >> >> >> >> >> On Sun, 3 May 2020, 11:03 pm Motaz Hejaze, wrote: >> >>> I think you have a script somewhere that calls this ip and main.php on >>> that server ..

Re: Possible server attacks

2020-05-03 Thread Ahmed Ishtiaque
> > Please, what could be the problem? > > > > > > On Sun, 3 May 2020, 11:03 pm Motaz Hejaze, wrote: > >> I think you have a script somewhere that calls this ip and main.php on >> that server .. >> >> Do you add any third party addons both on fron

Re: Possible server attacks

2020-05-03 Thread Miracle
third party addons both on frontend and backend ?? > > > On Sun, 3 May 2020, 11:31 pm Miracle, wrote: > >> I think the possible attacker thinks I am using PHP >> >> On Sun, 3 May 2020, 10:29 pm Miracle, wrote: >> >>> I don't know honestly. >>> >&

Re: Possible server attacks

2020-05-03 Thread Motaz Hejaze
I think you have a script somewhere that calls this ip and main.php on that server .. Do you add any third party addons both on frontend and backend ?? On Sun, 3 May 2020, 11:31 pm Miracle, wrote: > I think the possible attacker thinks I am using PHP > > On Sun, 3 May 2020, 10:29 p

Re: Possible server attacks

2020-05-03 Thread Miracle
I think the possible attacker thinks I am using PHP On Sun, 3 May 2020, 10:29 pm Miracle, wrote: > I don't know honestly. > > I got those error messages because I included my email and username in > settings.py like this > > ADMINS = ['username', 'collinsale...@gmail.com']

Re: Possible server attacks

2020-05-03 Thread Miracle
m Miracle, wrote: > >> Hello django developers, >> >> I might be experiencing a possible attack on my web server, but I am not >> sure yet. >> Below is the email I got from my django. >> I've gotten over 50 similar emails over the past 3 days. >> >>

Re: Possible server attacks

2020-05-03 Thread Motaz Hejaze
What is the script main.php ??? On Sun, 3 May 2020, 10:43 pm Miracle, wrote: > Hello django developers, > > I might be experiencing a possible attack on my web server, but I am not > sure yet. > Below is the email I got from my django. > I've gotten over 50 similar emails ov

Possible server attacks

2020-05-03 Thread Miracle
Hello django developers, I might be experiencing a possible attack on my web server, but I am not sure yet. Below is the email I got from my django. I've gotten over 50 similar emails over the past 3 days. Please, help me with this. Invalid HTTP_HOST header: '35.192.28.182'. You may need

Re: It is Possible to send html File through Django Rest api? Please suggest

2020-03-20 Thread Andréas Kühne
This is of course possible. If you look at the restframework examples you can run it in a html browser that returns different values than the api itself. Regards, Andréas Den fre 20 mars 2020 kl 09:47 skrev Sai Sandeep Rayanuthala < rayanutha...@gmail.com>: > Yeah possible. Us

Re: It is Possible to send html File through Django Rest api? Please suggest

2020-03-20 Thread Sai Sandeep Rayanuthala
Yeah possible. Use content disposition. On Thu, 19 Mar 2020, 13:01 Suraj Thapa FC, wrote: > No > > On Thu, 19 Mar 2020, 10:53 am venna venkatReddy, > wrote: > >> It is Possible to send html File through Django Rest API. I need how to >> send Template/one.html fil

Re: It is Possible to send html File through Django Rest api? Please suggest

2020-03-19 Thread Suraj Thapa FC
No On Thu, 19 Mar 2020, 10:53 am venna venkatReddy, wrote: > It is Possible to send html File through Django Rest API. I need how to > send Template/one.html file to Other Application when they hit my API. > > Please respond or suggest any url > > -- > You received thi

It is Possible to send html File through Django Rest api? Please suggest

2020-03-18 Thread venna venkatReddy
It is Possible to send html File through Django Rest API. I need how to send Template/one.html file to Other Application when they hit my API. Please respond or suggest any url -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread Ol P
universe of the solutions there is a better way to organize things. What I trying is to check if it is possible to use the same concepts implemented in Odoo ORM (https://github.com/odoo/odoo). I want to migrate from Odoo to Django due to the first has some limitations. On Saturday, February 29,

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread Ol P
y, 28 February 2020 18:20:12 UTC+5:30, Ol P wrote: >>>> >>>> But how to add fields to it? >>>> >>>> Where to put what: >>>> from appA import model1 >>>> >>>> >>>> class ExtendedModel1(?): >>>> ?

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread Naveen Arora
import model1 >>> >>> >>> class ExtendedModel1(?): >>> ? >>> >>> new_field = models.CharFiled() >>> >>> class Meta: >>>? >>> >>> >>> On Friday, February 28, 2020 at 2:23:1

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread osasere igbinoba
ten in *model-B* to implement it? > > In other words, is it possible to implement the same-table extension? > -- 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

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Motaz Hejaze
ote: >>> >>> But how to add fields to it? >>> >>> Where to put what: >>> from appA import model1 >>> >>> >>> class ExtendedModel1(?): >>> ? >>> >>> new_field = models.CharFiled() >>> >&g

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Ol P
; >> But how to add fields to it? >> >> Where to put what: >> from appA import model1 >> >> >> class ExtendedModel1(?): >> ? >> >> new_field = models.CharFiled() >> >> class Meta: >>? >> >> >

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Naveen Arora
fields to it? > > Where to put what: > from appA import model1 > > > class ExtendedModel1(?): > ? > > new_field = models.CharFiled() > > class Meta: >? > > > On Friday, February 28, 2020 at 2:23:17 PM UTC+2, Naveen Arora wrote: >> >

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Ol P
But how to add fields to it? Where to put what: from appA import model1 class ExtendedModel1(?): ? new_field = models.CharFiled() class Meta: ? On Friday, February 28, 2020 at 2:23:17 PM UTC+2, Naveen Arora wrote: > > Clearly Possible, > Simply import the mo

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Naveen Arora
Clearly Possible, Simply import the model first using appname.models. Hope it helps:) You can use this as from appA import model1 in app2 On Thursday, 27 February 2020 22:04:12 UTC+5:30, Ol P wrote: > > Imagen we have *app-A* and *app-B* with *model-A* and *model-B* > accordingly. >

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-27 Thread Ol P
This is definitely not correct implementation. Only for illustration purposes. On Thursday, February 27, 2020 at 7:55:51 PM UTC+2, One Above All wrote: > > It is indeed possible, but I am not sure whether it should be done this > way. > > On Thu, Feb 27, 2020 at 11:04 PM Ol P

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-27 Thread One Above All
It is indeed possible, but I am not sure whether it should be done this way. On Thu, Feb 27, 2020 at 11:04 PM Ol P wrote: > I try to figure out if it possible to implement the next scenario: > > garage (app-A) > models >class Vehicle(models.Model) > vin=models.CharF

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-27 Thread One Above All
I am not sure if this is the right way. On Thu, Feb 27, 2020 at 11:24 PM One Above All < the.one.above.all.ti...@gmail.com> wrote: > It is indeed possible, but I am not sure whether it should be done this > way. > > On Thu, Feb 27, 2020 at 11:04 PM Ol P wrote: > &

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-27 Thread Ol P
I try to figure out if it possible to implement the next scenario: garage (app-A) models class Vehicle(models.Model) vin=models.CharField(max_length=50) ... def import_data(self): ... # import vehicals external integration (app-B) models class

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-27 Thread wanbao jin
t;>> Imagen we have *app-A* and *app-B* with *model-A* and *model-B* >>> accordingly. >>> And we want to extend *model-A* in *app-B*. >>> What should be written in *model-B* to implement it? >>> >>> In other words, is it possible to implement the s

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-27 Thread Ol P
in app-B? > > On Fri, Feb 28, 2020 at 12:33 AM Ol P > wrote: > >> Imagen we have *app-A* and *app-B* with *model-A* and *model-B* >> accordingly. >> And we want to extend *model-A* in *app-B*. >> What should be written in *model-B* to implement it? >> >> I

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-27 Thread wanbao jin
d be written in *model-B* to implement it? > > In other words, is it possible to implement the same-table extension? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receivin

Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-27 Thread Ol P
Imagen we have *app-A* and *app-B* with *model-A* and *model-B* accordingly. And we want to extend *model-A* in *app-B*. What should be written in *model-B* to implement it? In other words, is it possible to implement the same-table extension? -- You received this message because you

Possible bug in Media class.

2019-10-08 Thread Roman Telezhynskyi
Hello, Today for my project I tried to find a solution for an issue with duplicate assets. Combining several approaches I managed to build an app to solve it. While debugging the app, I think, I found a bug in Media class. File *django/forms/widgets.py* @html_safe class Media: def

Re: Job opporunity for an experienced Django/Python software engineer - Corvallis, OR (Remote possible)

2019-08-29 Thread Virendra Tripathi
Hi Nikolas,, Thank you for the inquiry. I am interested in discussing the role with you. I am, however, currently in India and plan to be back in the bay area in around 2 weeks. At that time, l'll touch base with you and with your self willingly, move forward. Else, we can always do a

Re: Aggregating the results of a .union query without using .raw, is it possible?

2019-08-19 Thread Simon Charette
str(aggregated.query) > > > ) > > > This works perfectly when pasted into my database SQL. I could do this in > Python/Django using .raw() but the documentation says to ask here before > using .raw() as mostly anything could be acomplished with the ORM. > > Yet, I don't se

Re: Aggregating the results of a .union query without using .raw, is it possible?

2019-08-19 Thread Jo
_crashes") FROM ( > > > // String from Python > str(aggregated.query) > > > ) > > > This works perfectly when pasted into my database SQL. I could do this in > Python/Django using .raw() but the documentation says to ask here before > using .raw() as mostly

Aggregating the results of a .union query without using .raw, is it possible?

2019-08-19 Thread Jo
into my database SQL. I could do this in Python/Django using .raw() but the documentation says to ask here before using .raw() as mostly anything could be acomplished with the ORM. Yet, I don't see how. Once I call .union on 2 querysets, I cannot aggregate further. aggregated.union(ag).annotate(cc=Su

Re: Job opporunity for an experienced Django/Python software engineer - Corvallis, OR (Remote possible)

2019-07-26 Thread RONAK JAIN
Thanks, Nikolas Stevenson-Molnar. I don't have update resume yet so please go best representing my profile here, https://www.linkedin.com/in/ronakjainpython/ Thanks & Regards Ronak Jain On Fri, Jul 26, 2019 at 7:50 AM Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > The

  1   2   3   4   5   6   7   8   9   10   >