Re: Internal Server Error: /tinymce/compressor/

2019-06-18 Thread Mike Dewhirst
Sorry to bother you. I uninstalled all the old packages and reinstalled the new ones again and the problem has gone away. On 18/06/2019 7:03 pm, Mike Dewhirst wrote: Can anyone point me in the right direction please? I'm currently switching from ...     tinymce_lite4 and

Re: unable to import django packages

2019-06-18 Thread Aldian Fazrihady
Has the IDE used the same python environment with the one having Django module installed? Aldian Fazrihady On Wed, 19 Jun 2019, 05:42 KUMBHAGIRI SIVAKRISHNA, < kumbhagirish...@gmail.com> wrote: > hi, > I just django started ,when I run my application ,it gives errors as shown > in figure > >

Re: unable to import django packages

2019-06-18 Thread Ing.Daniel Bojorge
What happen with your server? This error may be only in VSCode. Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge *Curso Crea un sistema de compras completo con Django *

Editing the User model registration form, multiple user types on one form

2019-06-18 Thread Taha Arif
I have a user model registration form, I want to modify it to include a radio button that when triggered opens up a few more fields. from django.contrib.auth import get_user_model from django.contrib.auth.forms import UserCreationForm class UserCreateForm(UserCreationForm): class Meta:

Suggestions for Models to achieve queryset with multi table joins

2019-06-18 Thread Rupin Chheda
Hello, I have been searching since the last couple of days and dont see a clear answer, hence posting here. Here is what my application is 1) There are Users ( CustomUser) 2) There are Forms (PDFForm) 3) There are Fields(Field) 4) Each Form has multiple Fields with attributes(PDFFormField) 5)

unable to import django packages

2019-06-18 Thread KUMBHAGIRI SIVAKRISHNA
hi, I just django started ,when I run my application ,it gives errors as shown in figure -- 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

Re: Serving staticfiles

2019-06-18 Thread Andréas Kühne
Hi, The default way to do staticfile deployment in production is first of all to run collectstatic. Then change debug to false. But in doing so, django no longer serves the staticfiles, so you need to setup a http server infront of django (nginx or apache). Read here about the settings:

Serving staticfiles

2019-06-18 Thread Soumen Khatua
Hi Folks, After run python manage.py collrctststic all the static files copied into project_root specified folder. But after doing debug = false,the images and Css files link is not working and showing 404 error message in console. But when I did debug = True it's url and everything working

Re: Package that helps update only changed fields

2019-06-18 Thread Simon Charette
Hello Dan, I'm not aware of any third party library handling this but a simple way to achieve what you're after would be to subclass ModelForm in order to override save() and pass commit=False in your super() call. e.g. (untested) class UpdateFieldsModelForm(ModelForm): update_fields =

Re: call a view several times in another view

2019-06-18 Thread Dan Davis
I don't think it is a a good idea to call a view from another view, but if you have an underlying function that used to be a view, and you want to call it to do the secondmethod, then that's a good way to begin to do more with Django. Another good way is to practice using the generic

Re: Saving OnetoOne Field

2019-06-18 Thread Dan Davis
Shreejith Unnikrishnan Nair, Is this in a ModelForm or the intsance itself? That would help to give guidance... On Tuesday, June 18, 2019 at 11:40:53 AM UTC-4, Lutalo Bbosa joseph wrote: > > A foreignKey with aunique attribute is same as using a OnetoOneField so > either can suit your

Re: Saving OnetoOne Field

2019-06-18 Thread Lutalo Bbosa joseph
A foreignKey with aunique attribute is same as using a OnetoOneField so either can suit your needs and please be clear about saving On Tue, Jun 18, 2019 at 1:56 PM 'Shreejith Unnikrishnan Nair' via Django users wrote: > I'm beginner , so i need help > Please suggest me the best practice to

Package that helps update only changed fields

2019-06-18 Thread Dan Davis
So, I recently observed that a Django ModelForm updates all columns when it is updating a model instance. This is appropriate for a typical situation where Django is also in control of the schema. I also see that you can control this behavior by passing update_fields

call a view several times in another view

2019-06-18 Thread Sebastian Jung
Hello, I have a view like this: def secondmethod(request,entry): if request.method='POST': return request.POST.get('selection') render(request,'eintrag.html','entry':entry) def test(request): if request.method='POST': queryresult = model.objects.all() for

ImageField attributes

2019-06-18 Thread Luka Nik
[image: gesk1.png] Can someone help me with this? I am trying to resize profile photo for my web app, but the function is not working. It tried with both self.image.url and self.image.path - I guess that is why it is not working(unresolved attribute reference), but in the django documentation for

Saving OnetoOne Field

2019-06-18 Thread 'Shreejith Unnikrishnan Nair' via Django users
I'm beginner , so i need help Please suggest me the best practice to save the OnetoOneField in django. -- Thanks & Regards, Shreejith -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Django Project Using Azure App Services Not Connecting to Azure SQL Server Through Active Directory

2019-06-18 Thread Jorge William Pava Hernández
We are experiencing a problem with the Python connection to an Azure SQL Server, when trying to use the Active Directory as method for authentication. The error says that the user is blank and the domain name is malformed. Anyone having the same issue? -- You received this message because

Re: Typical Django Error

2019-06-18 Thread bharat pamnani
Its basically a file importing error from model thats why your view is showing error and saying No module name views check your importing file and make sure that file which you are importing is using in your program. I am sure it will fix the problem. On Tue, Jun 18, 2019 at 3:46 PM Soumen

How to create choices/options on the web page

2019-06-18 Thread mollyx09
I've been trying to create a list of options/choices for the user to choose from to display different types of graphs(bar/line etc) on the web page based on the same data that has been previously entered by me. I couldn't find very useful information online to go about this. Could you please

Typical Django Error

2019-06-18 Thread Soumen Khatua
Hi Folks, After I turnded debug into False and Alowed host=['providedip','*']. It's showing like this: mod = import_module(mod_name) File "C:\Users\sou\AppData\Local\Programs\Python\Python36\lib\importlib\__ __.py", line 126, in import_module return _bootstrap._gcd_import(name[level:],

Internal Server Error: /tinymce/compressor/

2019-06-18 Thread Mike Dewhirst
Can anyone point me in the right direction please? I'm currently switching from ...     tinymce_lite4 and filebrowser-no-grappelli to     django-tinymce, django-grappelli and django-filebrowser It is running on Ubuntu 18.04, Python3.6 and Django 2.1. Thanks Mike Internal Server Error:

Re: do i need a custom admin app or should i just use django admin?

2019-06-18 Thread Andréas Kühne
Sorry - wrong link - look here: https://docs.djangoproject.com/en/2.2/topics/auth/default/#the-permissionrequiredmixin-mixin Regards, Andréas Den tis 18 juni 2019 kl 10:21 skrev Andréas Kühne < andreas.ku...@hypercode.se>: > Regarding views and permissions, this is build into class based

Re: do i need a custom admin app or should i just use django admin?

2019-06-18 Thread Andréas Kühne
Regarding views and permissions, this is build into class based views. Look here: https://docs.djangoproject.com/en/2.2/topics/auth/default/#limiting-access-to-logged-in-users-that-pass-a-test Regards, Andréas Den mån 17 juni 2019 kl 20:31 skrev Rajat Chopra : > What are the reasons not to

Re: do i need a custom admin app or should i just use django admin?

2019-06-18 Thread Andréas Kühne
I have built a system using django admin for the main interface. It's doable - however - I wouldn't do it again. The main reason is that getting things working quickly is easy. You get a simple interface that can do CRUD. You then add grappelli (or some other system) to get a nicer interface. And