Django 3.1 alpha 1 released

2020-05-14 Thread Mariusz Felisiak
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2020/may/14/django-31-alpha-1-released/ -- 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, s

Re: Django 3.1 alpha 1 released

2020-05-14 Thread אורי
Hi, Is it possible to install Django 3.1 alpha 1 from pip and how? I want to test it locally and on Travis CI and the easiest way to install it for me is with pip. Thanks, Uri. אורי u...@speedy.net On Thu, May 14, 2020 at 12:44 PM Mariusz Felisiak < felisiak.mari...@gmail.com> wrote: > Detail

Re: Django 3.1 alpha 1 released

2020-05-14 Thread אורי
Hi, I found out that I can use: pip install --upgrade --pre django Thanks, Uri. אורי u...@speedy.net ‪On Thu, May 14, 2020 at 1:49 PM ‫אורי‬‎ wrote:‬ > Hi, > > Is it possible to install Django 3.1 alpha 1 from pip and how? I want to > test it locally and on Travis CI and the easiest way to in

Re: how to save multiple checkbox values and checked status(true or false) in the django....

2020-05-14 Thread Kasper Laudrup
On 14/05/2020 03.42, frontend developer wrote: Hello,  i am beginner to django, i am sending values and checked status from the front end using checkboxesnow i do not no how to write frame work in the django, can i get any help on these Start by completing the official Django tutoria

Issue with Heroku Getting Started

2020-05-14 Thread J Maryott
Wondering if anyone may be able to shed some light on this...I've cloned the latest dev. version of Django from Git, and though I'm a bit of a newbie here, and this might sound totally dumb to the professionals (I'm unsure), I also tried pip install django.utilsas a last ditch effort. I

Django Model

2020-05-14 Thread muazzem_ hossain
how to get django all app model. -- 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 web vi

Re: how to save multiple checkbox values and checked status(true or false) in the django....

2020-05-14 Thread frontend developer
thanks very much for your replyi want to how to store the check box value and checked state in the django..can help on this On Thursday, May 14, 2020 at 4:58:37 PM UTC+5:30, Kasper Laudrup wrote: > > On 14/05/2020 03.42, frontend developer wrote: > > Hello, i am beginner to django, i am sen

Re: Media files and download url

2020-05-14 Thread Parampal Singh
More details please 😊 On Tue, May 12, 2020, 12:52 AM Riska Kurniyanto Abdullah < alternative@gmail.com> wrote: > Amazon S3 have simple solution for that topic > > > On Tue, May 12, 2020 at 1:27 AM Parampal Singh > wrote: > >> Access media vedio files only when user logged in >> >> Temporary

Re: Django Model

2020-05-14 Thread Derek
>>> from django.apps import apps >>> apps.all_models['app_name'] So if your app is called, for example, products, then: >>> apps.all_models['products'] Will create a dictionary with all the model classes from that app. On Thursday, 14 May 2020 14:03:40 UTC+2, muazzem_ hossain wrote: > > how to

Re: password reset pages are not showing customizing html file

2020-05-14 Thread Ali Ahammad
hello guys i have tried email_template_name = 'registration/password_reset_email.html', success_url = reverse_lazy('registration:password_reset_done') but still no luck. i tried to edit template_name='accounts/reset_password.html, seems like django is reaching out to this hml file. but when i

Re: Django Model

2020-05-14 Thread muazzem_ hossain
Thank you for help On Thu, May 14, 2020 at 7:23 PM Derek wrote: > >>> from django.apps import apps > >>> apps.all_models['app_name'] > > So if your app is called, for example, products, then: > > >>> apps.all_models['products'] > > Will create a dictionary with all the model classes from that ap

Re: Django 3.1 alpha 1 released

2020-05-14 Thread אורי
Hi, Django 3.1 alpha 1 works for me and my project, I just had to change some imports. I ran all the unit tests and they all passed. Uri. אורי u...@speedy.net On Thu, May 14, 2020 at 12:44 PM Mariusz Felisiak < felisiak.mari...@gmail.com> wrote: > Details are available on the Django project w

Re: CSS with Django forms

2020-05-14 Thread Anubhav Madhav
Thankyou Bighnesh On Wednesday, 13 May 2020 18:57:36 UTC+5:30, Bighnesh Pradhan wrote: > > you can use javascript it is good > > On Wed, May 13, 2020 at 3:13 AM Anubhav Madhav > wrote: > >> My problem is, that I've made a beautiful 'Sign Up' and 'Login' Page >> using HTML and CSS. Later on, in m

Re: CSS with Django forms

2020-05-14 Thread Anubhav Madhav
Thankyou Kasper :) On Wednesday, 13 May 2020 19:02:46 UTC+5:30, Kasper Laudrup wrote: > > > > On 13/05/2020 06.17, Bighnesh Pradhan wrote: > > you can use javascript it is good > > > > Oh yes, we all love javascript: > > https://www.destroyallsoftware.com/talks/wat > > :-) > > Seriously thou

Re: CSS with Django forms

2020-05-14 Thread Anubhav Madhav
Thankyou Clive!! I know I can use CSS like that, but if I do that the problem I'll face is that the 'form' or the 'input' tags or 'submit' button, which are rendered using django forms, cannot be modified using CSS in this way. Is there any other way to fix it? On Wednesday, 13 May 2020 18:58:0

Re: Inserting data from a text file is not working for Postgres database

2020-05-14 Thread ABHIJIT PATKAR
Try to give complete path of file and try again Thank you, Abhijit On Thu, 14 May, 2020, 10:27 AM Ram, wrote: > Hi, > > We are trying to insert the data from a text file ' > *some_category_list.txt*'' into a table in Postgres database using the > highlighted query in our functions.py > > file =

Re: how to save multiple checkbox values and checked status(true or false) in the django....

2020-05-14 Thread Kasper Laudrup
On 14/05/2020 14.42, frontend developer wrote: thanks very much for your replyi want to how to store the check box value and checked state in the django..can help on this So what have you tried so far and where are you facing issues? Kind regards, Kasper Laudrup -- You received this

Re: Deploying Django Project on heroku

2020-05-14 Thread Sunday Iyanu Ajayi
Thank you. I will do that *AJAYI Sunday * (+234) 806 771 5394 *sunnexaj...@gmail.com * On Thu, May 14, 2020 at 3:58 AM Akshat Zala wrote: > If possible, please downgrade the django version to django2.2 LTS and try > again... > > -- > You received this message because you are subscribed to the

How to clone or run your project on local machine by cloning/connecting to Linode Server. what are requirements need to be installed on your Machine.

2020-05-14 Thread chaitan
Hi every one, I am hired as a Python/Django Developer. My company has deployed its *Django application* into LINODE Server. I have experience using the Heroku server, but Pretty much new to this *Linode server*, have no clue about this. I want to run/Connect to project to that server to *run l

Re: TypeError: resolve() got an unexpected keyword argument 'strict' in Django

2020-05-14 Thread uday
Abhi, Did you got any resolution for this issue. I did recent upgrade to Django 3.0.6 and started getting the same issue. My pathlib library is also upto date. On Monday, April 13, 2020 at 4:28:57 AM UTC+5:30, Abhishek Pandey wrote: > > Hello Everyone! > > I am a new Django learner. I followed so

Re: How to clone or run your project on local machine by cloning/connecting to Linode Server. what are requirements need to be installed on your Machine.

2020-05-14 Thread Julio Cojom
It must have a requirements.txt , so run pip install -r requirements.txt. Next run all django stuff (manage.py makemigrations, manage.py migrate, manage.py runserver) if requirements.txt isnt in the git repo, you can do it running manage.py runserver and watching every error it throws and install

Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Ahmed Khairy
Hi all I am adding a like/unlike button for Posts in a Listview, I am getting an error: Exception Value: Related Field got invalid lookup: value here is the Model: class Post(models.Model): designer = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_len

Re: How to clone or run your project on local machine by cloning/connecting to Linode Server. what are requirements need to be installed on your Machine.

2020-05-14 Thread chaitanya orakala
Yes, You are correct. It has nothing to do with the server when I cloned it from Git. I did follow your Process but the Django app consists of multiple settings files for Production, Development, and Test. I configured my own settings file and try to run the command Python manage.py runserver --se

Re: Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Motaz Hejaze
Where does this exception happen ? In which file , which line ? On Fri, 15 May 2020, 12:51 am Ahmed Khairy, wrote: > Hi all > > I am adding a like/unlike button for Posts in a Listview, I am getting an > error: > > Exception Value: Related Field got invalid lookup: value > > here is the Model:

Re: Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Ahmed Khairy
In the views file in the class PostListView(ListView): 1. def get_queryset(self, **kwargs): 2. queryset = super(PostListView, self).get_queryset(**kwargs) 1. return queryset.annotate( … 1. total_

Templates in Django

2020-05-14 Thread אורי
Hi, I noticed that an app's template can't extend a template with exactly the same path in another app. Recently I had a need to extend such a template, called 'accounts/edit_profile/base.html', so I renamed it to 'accounts/edit_profile/core_base.html' and added a new template 'accounts/edit_profi