Re: Django How to write Customized Query ( Display Information Departmentwise)

2019-04-22 Thread Balaji Shetty
Dear Gaurav Sir I am very much thankful to you for your reply to my query. My questions is *How can i make the customization in Django Admin Panel itself to implement necessary logic after user of particular department do the login.( How and where to embed proposed Logic T1.objects.filter(user=c

Generate PDF using reportlab and write to s3 bucket without saving locally

2019-04-22 Thread Danny Blaker
I'm trying to generate a PDF using reportlab and write to s3 bucket without saving locally I know I'm missing something simple: # create a stream stream = io.BytesIO() # generate PDF doc = SimpleDocTemplate(stream, pagesize=letter, rightMargin=72, leftMargin=72,

Django test

2019-04-22 Thread Elber Tavares
Test 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 post to this group, send email to django-users@googlegr

Django interview Questions

2019-04-22 Thread Aakash Bachheriya
Which type of Questions are generally asked during Django interview? -- 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. T

models and forms

2019-04-22 Thread Shereyne Casimsiman
I am current making a project and django is very new to me, I've been following tutorials but it did not answer my concern.. My project is to build a quiz that will have an audio as the question . I already installed the django-audiofield and successfully added it into the admin but my problem

Migration of Django to AWS Server

2019-04-22 Thread Davin Pore
May i know to transfer a django file to AWS server -- 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 gr

Genetic Algorithm for generating timetable

2019-04-22 Thread brittocj
How to implement genetic algorithm in Django to develop a web application for timetable generation? -- 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

Re: Django interview Questions

2019-04-22 Thread animeshagrawaal
> > > Some of the questions which are usually asked in Django interview are: > > >1. Explain what is Django and some basic features of Django framework. >2. How can we customize Django admin interface? >3. Define Django ORM and its importance. >4. What is Django model? Explain its

Converting django app to iPhone app

2019-04-22 Thread Larry Martell
Has anyone here every taken a django web app and converted it to an iPhone app? If so, can you share your experiences here please? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Django interview Questions

2019-04-22 Thread Karan Mittal
Also you can check out my articles on Django and learn it from scratch. https://data-flair.training/blogs/category/django/ The articles are uploaded on a timely basis and we will be covering more advanced topics too. On Mon, Apr 22, 2019 at 6:18 PM wrote: > >> Some of the questions which are us

Re: compute model field by related field

2019-04-22 Thread omar ahmed
i put this function in "Match" class : def points(self): if self.score_local > self.score_visitor: return (self.club_local.won)+1 and (self.club_visitor.lost)+1 elif self.score_local < self.score_visitor: return (self.club_local.lost)+1 and (self.club_visitor.won)+1 else: return (self.club_local.dr

Re: Converting django app to iPhone app

2019-04-22 Thread Nick Sarbicki
Kind of... I've worked with several Django APIs that we use to back apps on Android and iOS as well as web apps. I generally find that's the key, make sure you can pass all the data along as an API and the rest is just understanding how to build a frontend on the platform. Django doesn't really g

User Posts not posting to page

2019-04-22 Thread silverstrings026
Hello, i'm trying to allow users to post to a public posts page, it shows up in the admin page (where you manage a pages post) but it isn't showing up on the page. Relevant Files & HTML (app level & project level urls.py is not included because routing is fine) ***CAN'T FORMAT CODE, IT WON'T L

Re: problems with url and views - new to django

2019-04-22 Thread Robert Wahoo
Awesome,Thanks Victor, I’ll give this a shot. Thanks. From: "django-users@googlegroups.com" on behalf of "Victor H. Velasquez Rizo" Reply-To: "django-users@googlegroups.com" Date: Sunday, April 21, 2019 at 9:02 PM To: "django-users@googlegroups.com" Subject: Re: problems with url and views

Re: Converting django app to iPhone app

2019-04-22 Thread Larry Martell
Googling I found where someone said you could leave the back end in python and rewrite the front end in objective C or swift or rewrite the entire app in objective C or swift. Why would you need to rewrite the python back end that runs on the server? On Mon, Apr 22, 2019 at 10:27 AM Nick Sarbicki

Re: Converting django app to iPhone app

2019-04-22 Thread Nick Sarbicki
That's the point, you don't. Assuming your backend has an effective way of delivering data (e.g. a REST API). If your Django server currently only renders HTML templates then you may want to consider adding an API on top of that. But the backend definitely does not need to be rewritten, only sligh

Re: Converting django app to iPhone app

2019-04-22 Thread Larry Martell
Yes, it only renders HTML and also has a lot of javascript. On Mon, Apr 22, 2019 at 12:25 PM Nick Sarbicki wrote: > > That's the point, you don't. Assuming your backend has an effective way of > delivering data (e.g. a REST API). > > If your Django server currently only renders HTML templates th

Re: problems with url and views - new to django

2019-04-22 Thread Robert Wahoo
Actually, I found why I got that last message, was a typo on my part. On to the next problem…Thank you. From: "django-users@googlegroups.com" on behalf of "Victor H. Velasquez Rizo" Reply-To: "django-users@googlegroups.com" Date: Sunday, April 21, 2019 at 9:02 PM To: "django-users@googlegroup

Re: Converting django app to iPhone app

2019-04-22 Thread Nick Sarbicki
The JavaScript I assume is just for frontend logic so hopefully isn't very relevant - this will always need to be redone in the native language (unless using something like react native). If it only renders HTML then there is a bit of work you need to do in python/Django land. Think about what yo

Re: User Posts not posting to page

2019-04-22 Thread silverstrings026
**FIXED** > > #public_posts/forms/py > > from django.forms import ModelForm > > from .models import PublicPost > > class PublicPostForm(ModelForm): > > class Meta: > model = PublicPost > fields = ('title', 'text') #didn't need author > > > > > # public_posts/views.py > > > > fr

Re: Converting django app to iPhone app

2019-04-22 Thread Larry Martell
Thanks for the replies! On Mon, Apr 22, 2019 at 12:43 PM Nick Sarbicki wrote: > > The JavaScript I assume is just for frontend logic so hopefully isn't very > relevant - this will always need to be redone in the native language (unless > using something like react native). > > If it only render

testing API

2019-04-22 Thread Shubham Joshi
I have created the custom model authentication in django rest , so far I dont have front end , so my question is , Im I done with the API, since on browser it gives an error TemplateDoesNotExist at / rest_framework/api.html that of course due to I dont have template, in postmen its giving { "det

Integrating Google calendar API in TODO list

2019-04-22 Thread Sipum
Hello friends. I am going to integrate google calendar API in to my TODO List. can anyone suggest how to integrate so that when I will add any event in my TODO List app it will directly show in my google calendar. Thanks. -- You received this message because you are subscribed to the Google Gr

Re: Database setup

2019-04-22 Thread Sipum
Hi somen, Just Open xampp control panel and run apache and mySQL sever. then go to localhost/phpmyadmin in browser and there create a database as u do for php. then in search DATABASE in settings.py file (which would be created when u create a project in django) do the below changes - DATABAS

Re: testing API

2019-04-22 Thread Jani Tiainen
Hi, DRF does have built-in API viewer. To enable that you need to add rest_framework app in your INSTALLED_APPS so it can find necessary templates for showing. On Tue, Apr 23, 2019 at 7:15 AM Shubham Joshi wrote: > I have created the custom model authentication in django rest , so far I > dont