Re: models.py => Mandatory to create tables?

2018-09-09 Thread Benjamin SOULAS
Hi Andréas, Yes you are absolutely right, because I am still coding a POC to test some module features, I think I forgot to delete it. Now the make migrations and migrate works, BUT it didn't create the expected table, so still have an issue on that, hope to find quickly what happened? Regards

Re: mysqlclient is already installed but it will give an error,please help

2018-09-09 Thread Deepak Kumar jha
Thanks buddy On Wed, Sep 5, 2018 at 10:10 PM Everett White wrote: > Hey yay > > -- > 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.

Re: How to save multiple model form in one template?

2018-09-09 Thread Sunil Kothiyal
THIS IS MY FORM. I HOPE IT WILL CLEAR THE CONCEPT. [image: STLY.png] On Sun, Sep 9, 2018 at 1:59 AM Savvey Chauhan wrote: > First Create 3 Views For each form . > Second Create urls for all 3 views . > THiRD CHANGE ACTION URL ACCORDING TO VIEWS URL > ADD AJAX TO SUBMIT THE FORM > IF YOU WANT TO

Re: A questionale developer had added exraneous code to image URLS that used to work. I would be gratefuldor your assitamce please?

2018-09-09 Thread Vijay Khemlani
If you're using django-storages with S3 as the media backend then there is a setting called AWS_S3_FILE_OVERWRITE that prevents files with the same name form being uploaded. In those cases the library appends a suffix similar to your example. Usually this is useful to prevent files from being over

Re: How can I add more modules to a CORE in the backend so that I may create content pages please?

2018-09-09 Thread mottaz hejaze
do you want to share the news and events in catalog app ??? if this so , in your catalog app directory , in admin.py from CATC_CORE.models import Event, News admin.site.register(Event) admin.site.register(News) On Mon, Sep 10, 2018 at 12:47 AM KarmaFish wrote: > *How can I add more modules to

Re: A questionale developer had added exraneous code to image URLS that used to work. I would be gratefuldor your assitamce please?

2018-09-09 Thread mottaz hejaze
please share code .. Is this image from admin panel or from website front .. please share models.py , admin.py , views.py and forms.py On Mon, Sep 10, 2018 at 12:47 AM KarmaFish wrote: > Hello we had no issues uploaded images to our servers pointing toa n > image name. > But this Dev came

Re: how-to style registration form?

2018-09-09 Thread mottaz hejaze
please full error message On Mon, Sep 10, 2018 at 12:48 AM V O wrote: > i currently try to "style" my registration form. in General i get the > concept behind it but not at that point: > > > This is how it's intendet to be (and not working): > > class RegistrationForm(UserCreationForm): >>

Re: serve mp3 files without html5

2018-09-09 Thread mottaz hejaze
please give us more details On Mon, Sep 10, 2018 at 12:48 AM Mustafa Ryad wrote: > how can i play mp3 file without html5 tag > > -- > 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

serve mp3 files without html5

2018-09-09 Thread Mustafa Ryad
how can i play mp3 file without html5 tag -- 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 post to this group, send

how-to style registration form?

2018-09-09 Thread V O
i currently try to "style" my registration form. in General i get the concept behind it but not at that point: This is how it's intendet to be (and not working): class RegistrationForm(UserCreationForm): > username = forms.CharField(required=True, label='Username', > widget=forms.T

Re: Django for desktop app development

2018-09-09 Thread Vanity Fair
c# On Fri, Sep 7, 2018 at 7:26 PM Muhammad Dilshad Khaliq < dilshadkhaliq...@gmail.com> wrote: > I am final year student of software engineering.My final year project is > about fee management system where student submit fee online and > administrator use this system for managing fee and scholar

A questionale developer had added exraneous code to image URLS that used to work. I would be gratefuldor your assitamce please?

2018-09-09 Thread KarmaFish
Hello we had no issues uploaded images to our servers pointing toa n image name. But this Dev came in and changed the code. Whenever we upload a new image for a product, after save , we'd go back to find that the image name had an automatically generated code added to the jpg filename making th

How can I add more modules to a CORE in the backend so that I may create content pages please?

2018-09-09 Thread KarmaFish
*How can I add more modules to a CORE in the backend so that I may create content pages please?* Please forgive I am new. -- 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: Error while doing django tutorial part 2

2018-09-09 Thread Pravinkumar Kale
I am also getting same issue... Following is my code ## from django.db import models from django.utils import timezone class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(

Re: does django pdf documentation has all of the existing functions and classes?

2018-09-09 Thread Andréas Kühne
The django documentation does not include the code for the django project. It is the offline version of https://docs.djangoproject.com/ You won't need to know all the django code to use django on a website. Regards, Andréas Den lör 8 sep. 2018 kl 18:21 skrev Amirhosein Majidi : > does django

Re: Views & Template issue

2018-09-09 Thread Mikko Meronen
Thank you. -Mikko su 9. syysk. 2018 klo 16.49 Jason (jjohns98...@gmail.com) kirjoitti: > You've defined two views which pass in different querysets to be rendered. > > so if you hit index, you get the first queryset rendered but not the > second because newstest1 is not rendered at all. and vic

I don't clearly know how to name my issue, please read the body.

2018-09-09 Thread vineeth sagar
I have a form class like this, if the db is not populated I skip that field, in the future when something thaat might trigger a d population happens and I try to render this form, it doesn't recognise the update, but once I restart the development server it renders with the newly added field? I

Re: Data lost by a migration for renaming a field

2018-09-09 Thread Jason
> > I'm also thinking it might be much helpful to detect the rename as much as > possible and give warning message about developer has to modify the > migration to rename field properly > sure, but how would you do this? And how would you cover all the possible cases to detect whether the dev

Re: Views & Template issue

2018-09-09 Thread Jason
You've defined two views which pass in different querysets to be rendered. so if you hit index, you get the first queryset rendered but not the second because newstest1 is not rendered at all. and vice versa. solution is to add newstest1 to index and pass both querysets as context to the rende

Re: Django for desktop app development

2018-09-09 Thread Gerald Brown
I have created something similar to this.  My setup is a 2 system IntrAnet ( not Internet). One system is being used as a web server running Nginx & Django with a Mariadb database.  I also had to install a wireless router.  The server system is using the Django Admin system as there are only 2

Views & Template issue

2018-09-09 Thread Mikko Meronen
Hi again, I'm trying to include two views in one html template, however the latter(bolded) view doesn't work. The first one works well and I can see the items created within last 15 minutes in my webpage. However when I want to see the older items (bolded html part and index1 in views.py), I don'

How to make custom field (defined as function) in StackedInline hidden?

2018-09-09 Thread Mirek Zvolsky
Django 2.1. I have this code: class AnswerInline(admin.StackedInline): model = Answer form = AnswerForm fields = ("question_answer_type", "answer_plain") readonly_fields = ("question_answer_type",) def question_answer_type(self, row): return row.question.answer_type This wor

Re: What is a standard practice to drop tables of an app in Django?

2018-09-09 Thread mottaz hejaze
make the attribute post_auther null = True , then make migrations On Sat, Sep 8, 2018 at 6:21 PM Jae Pil Choi wrote: > I'm asking this on the official Django community after I asked on > Stackoverflow because I still don't know what is the best practice for this > particular action. > > (Origi

Re: Django for desktop app development

2018-09-09 Thread mottaz hejaze
Luc , man this framework Lino is very Cool .. محمد عرفني يا هندسة انت عاوز تعمل ايه وربك ييسر اخوك معتز من مصر On Sun, Sep 9, 2018 at 9:14 AM Luc Saffre wrote: > Hi Muhammad, > > we do write and maintain desktop applications for our customers using > Django. But before feeling able to offer thi

Re: What is a standard practice to drop tables of an app in Django?

2018-09-09 Thread Mike Dewhirst
On 8/09/2018 9:09 PM, Jae Pil Choi wrote: I'm asking this on the official Django community after I asked on Stackoverflow because I still don't know what is the best practice for this particular action. (Original Question on Stackoverflowhere

Re: Django for desktop app development

2018-09-09 Thread Luc Saffre
Hi Muhammad, we do write and maintain desktop applications for our customers using Django. But before feeling able to offer this we wrote Lino, a kind of "intrusive" Django application which replaces the Admin by a new desktop-like user interface (currently based on ExtJS). It also replaces the pe