Re: Slug not working

2019-04-18 Thread Aakash Baranwal
Can anyone kindly suggest what I am doing wrong? Thanks Aakash On Thu, Apr 18, 2019 at 3:10 PM Aakash Baranwal wrote: > Hi Everybody, > > This is my models.py file: > > from django.db.models.signals import pre_save > from django.utils.text import slugify > from django.db import models > from

Re: Convertingg rendered Model Data in HTML to PDF USING XHTML2PDF

2019-04-18 Thread Irfan Khan
thanks for your response Matthew Pava Not Exactly getting using xhtml2pdf for converting model data rendered in html to pdf i have browsed but not exactly getting, can any one please guide me, On Thursday, 18 April 2019 20:18:59 UTC+5:30, Irfan Khan wrote: > > hi, all > can any one

Re: Slug not working

2019-04-18 Thread Aakash Baranwal
Hello Sir, As of now, I haven't thought of making any tutorials as I am just learning. Best Aakash On Thu, Apr 18, 2019 at 4:05 PM fofa Zu wrote: > idk what is the problem but i liked your app it is a tutorial if is it may > i get the link thanks > > ‫في الخميس، 18 أبريل 2019 في 12:41 م تمت

Merging multiple Django project into one

2019-04-18 Thread Simon Liu
Hello, I am try to migrate users from an old project into a a new project i am working on. I have extracted all the models from my old project into a reusable app. I was able to connect to multiple database, but i wasn't able to make my project be able to read the users and group from my old

Re: Select2 field breaks in admin when extending change_form.html

2019-04-18 Thread Jason Burke
Greetings, I'm not sure I was clear earlier, so I'll reword the problem again here... *Issue/Problem/Bug:* Extending the admin/change_form.html template in order to modify the .form-row style causes the autocomplete (Select2) and raw id widgets to stop working as documented. *Problem

Re: Select2 field breaks in admin when extending change_form.html

2019-04-18 Thread Julio Cojom
Hi sir, There is a library exclusive for admin, his name it's something like select2 admin , search it, I used it a couple times and only requires that you add it to your settings.py Regards! On Thu, Apr 18, 2019, 11:51 AM Jason Burke wrote: > Greetings all, > > I'm working on a project, and

Select2 field breaks in admin when extending change_form.html

2019-04-18 Thread Jason Burke
Greetings all, I'm working on a project, and I didn't like the default solid grey lines in each form-row, so I extended the change_form.html to remove them. However, in doing so, the autocomplete select2 field broke (raw_id_fields breaks as well). I've been looking for a workaround on this

django form help

2019-04-18 Thread Pramod Pandey
Dear all i did not pass drives_a value to drives variable ; i am using django module plz help me if any one using this django module.. #My Code is from django import forms import os drives_a = [chr(x) + "," for x in range(65, 90) if os.path.exists(chr(x) + ':')] class contactForm(forms.Form):

Re: File not getting uploaded

2019-04-18 Thread Aakash Baranwal
Yes Sir, I corrected it. Thanks a lot. Best Aakash On Thu, Apr 18, 2019 at 8:46 PM adarsh pandey wrote: > Gentle man you have not given enctype=" form/multipartdata" in the form > tag of the HTML file > > > On Wed, Apr 17, 2019, 12:05 PM Aakash Baranwal > wrote: > >> Hi Everybody, >> >> I am

RE: Convertingg rendered Model Data in HTML to PDF USING XHTML2PDF

2019-04-18 Thread Matthew Pava
We use Google’s Puppeteer in Node.js. I use the URL of the HTML page to convert as a GET parameter to the PDF generator view. The PDF generator view then uses subprocess.Popen to run the Node.js script that prints that HTML as a PDF page. As icing on the cake, the user can also automatically

Django model field and external SQL query

2019-04-18 Thread aardzhanov
Hello, my friends. I need to connect SQL query and model field as ManyToManyField. For example, models.py: cursor = connections['req'].cursor() query="""SELECT….""" cursor.execute(query) emps = cursor.fetchall() class test(models.Model) name = models.CharField(...)

how to update choices of field in change_view

2019-04-18 Thread richard . wu . 03
hi There, I have a field named A which has default choices, but when some filed named B was changed, i need to update the choices of filed A. I have tried overried function get_form, formfield_for_choice_filed, none of them could update choice of A based on value of filed B. Any help would be

I'm going to ask you an editor in django.

2019-04-18 Thread bang
I would like to add editor function in django and call up stored document( word, pdf, excel), edit and save. Is there a way? Something like an Apache POI in Java. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: File not getting uploaded

2019-04-18 Thread adarsh pandey
Gentle man you have not given enctype=" form/multipartdata" in the form tag of the HTML file On Wed, Apr 17, 2019, 12:05 PM Aakash Baranwal wrote: > Hi Everybody, > > I am trying to upload a file, but it says "No file chosen", even when I > have selected the file. However it is getting

Django model field and external SQL query

2019-04-18 Thread aardzhanov
Hello, my friends. I need to add in my model ManyToManyField connected to any sql query For example, models.py: cursor = connections['req'].cursor() query="""SELECT….""" cursor.execute(query) emps = cursor.fetchall() class test(models.Model) name = models.CharField(...)

Re: Failed to push Django project on github using gitbash

2019-04-18 Thread Joakim Hove
> [...] and merged also but it was giving same error again and again. bash% git fetch origin (assuming your remote is "origin" - which is typically the default) bash% git merge origin/master bash% git push origin master If this for some reason does not work (I can not understand why it should

Convertingg rendered Model Data in HTML to PDF USING XHTML2PDF

2019-04-18 Thread Irfan Khan
hi, all can any one please guide me how to covert the rendered data from models in html to pdf for example i have developed application and in that implemented search field to get the data from the database,till now it now fine but i have used xhtml2pdf library to convert i can see there

Re: Failed to push Django project on github using gitbash

2019-04-18 Thread Mayur Bagul
Hello online judge, after getting this error i deleted that repository and created it again and did same commands in git bash but it was giving same errors. and i also did google and as you said pull those changes i found similar answers on google but it didnt worked. i pull, fetched, and

Re: Failed to push Django project on github using gitbash

2019-04-18 Thread Test Bot
It means your remote has some changes that are not there in your local so when you are pushing, git is unable to merge those changes. Try a git pull then local merge and then push. Feel free to ask in case of any queries. On Thu, Apr 18, 2019, 6:58 PM Mayur Bagul wrote: > Hello Community, > >

Failed to push Django project on github using gitbash

2019-04-18 Thread Mayur Bagul
Hello Community, im using gitbash to upload my code to github but it giving below error: ! [rejected]master -> master (non-fast-forward) error: failed to push some refs to ' https://github.com/MayurBagul/Weather-Informer.git' hint: Updates were rejected because the tip of your current

Re: compute model field by related field

2019-04-18 Thread omar ahmed
thank you for response , derek but how can i increment 'win' 'lost' or 'draw' Club fields by 'winner' Match field On Wednesday, April 17, 2019 at 3:26:22 PM UTC+2, Derek wrote: > > 1. Add a "winner" field to your Match > 2. Implement a post_save signal for the Match model that updates the >

Re: Slug not working

2019-04-18 Thread fofa Zu
idk what is the problem but i liked your app it is a tutorial if is it may i get the link thanks ‫في الخميس، 18 أبريل 2019 في 12:41 م تمت كتابة ما يلي بواسطة ‪Aakash Baranwal‬‏ <‪baakash1...@gmail.com‬‏>:‬ > Hi Everybody, > > This is my models.py file: > > from django.db.models.signals import

Re: Why my email goes to spam?

2019-04-18 Thread Kasper Laudrup
Hi Mohammad, On 18/04/2019 10.05, Mohammad Etemaddar wrote: Hello. I'm working on a bussiness website. I send invitation and also confirm emails by django-allauth. Invitation and allauth emails go to spam box. I don't know what is the problem? How can I prevent emails going to spam? This is

Why my email goes to spam?

2019-04-18 Thread Mohammad Etemaddar
Hello. I'm working on a bussiness website. I send invitation and also confirm emails by django-allauth. Invitation and allauth emails go to spam box. I don't know what is the problem? How can I prevent emails going to spam? -- You received this message because you are subscribed to the Google