Re: From old-school Post/Redirect/Get to modern web (2018)

2018-09-06 Thread guettli
Up to now your customers keep us busy with new ideas. We even hardly advertise our products :-) I was talking to a JS expert. He likes the react framework. Now there are four frameworks to evaluate ... Regards, Thomas Am Mittwoch, 5. September 2018 12:59:54 UTC+2 schrieb Jason: > > Yeah, I g

Re: using extends more than once

2018-09-06 Thread Andréas Kühne
Short answer: You can't - at least not with extends. Extends is for one base template to be used for all default things you need on a HTML template. Long answer: You can include templates in another template. If you have one template and you need to include other templates in that template then yo

Django Nested Query with Aggregate.Sum()

2018-09-06 Thread mab . mobile . 01
QUESTION I have an application that will make on-line reservations for a series of weekly events. I would like to display the list of upcoming events in an html template with the number of remaining seats available in a single html page. I was able to create views to display the list of upcomi

Re: Online Judge.

2018-09-06 Thread satheesh
You can use third_party api's for compiling the code, instead of spending time on this. https://www.hackerearth.com/docs/wiki/developers/v3/ On Thursday, September 6, 2018 at 12:19:07 PM UTC+5:30, Md. Razibul Hasan Mithu wrote: > > I want to make an *Online Judge System*. That system runs* C/C+

Issue after WAR deployment in Apache Tomcat server

2018-09-06 Thread hari . krishnan
I am using Django 1.8 on Jython in Windows 10. Have created a simple Django project following the tutorial https://docs.djangoproject.com/en/1.8/intro/tutorial01. After packaging using buildwar(including jars), when I deploy the mysite.war archive in tomcat, I get an error. My project name is

about createsuperuser

2018-09-06 Thread VIPIN VIPIN
I had created a superuser successfully, but login webpage doesnot appear on chrome. -- 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...@goo

Re: about createsuperuser

2018-09-06 Thread ireoluwa fakeye
Put /admin after 127.0.0.1 On Thu, 6 Sep 2018, 12:42 VIPIN VIPIN, wrote: > I had created a superuser successfully, but login webpage doesnot appear > on chrome. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this

Re: about createsuperuser

2018-09-06 Thread VIPIN VIPIN
I had already used admin/ On Thu, 6 Sep 2018, 5:13 pm ireoluwa fakeye, wrote: > Put /admin after 127.0.0.1 > > On Thu, 6 Sep 2018, 12:42 VIPIN VIPIN, wrote: > >> I had created a superuser successfully, but login webpage doesnot appear >> on chrome. >> >> -- >> You received this message because

I am not able to install mysql for python.

2018-09-06 Thread Django Lover
*I am getting following error when i am running pip install mysql-python Comand . Please help??* [image: asd.png] -- 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 a

Not able to install mysql for pyhton.

2018-09-06 Thread Django Lover
*I am getting following error when i am running pip install mysql-python Comand . Please help??* [image: asd.png] -- 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

Re: Not able to install mysql for pyhton.

2018-09-06 Thread Rodrigo Zayit
Have you installed MySQL? Att., Rodrigo de Oliveira On Thu, 6 Sep 2018 at 09:01, Django Lover wrote: > *I am getting following error when i am running pip install > mysql-python Comand . Please help??* > > > > [image: asd.png] > > -- > You received this message because you are subscribed t

Re: Not able to install mysql for pyhton.

2018-09-06 Thread Rodrigo Zayit
Try: pip install mysqlclient==1.3.4 and if this command does not work, try it: pip install --only-binary :all: mysqlclient Att., Rodrigo de Oliveira On Thu, 6 Sep 2018 at 09:04, Rodrigo Zayit wrote: > Have you installed MySQL? > > Att., > Rodrigo de Oliveira > > > On Thu, 6 Sep 2018 at 09:0

Re: Not able to install mysql for pyhton.

2018-09-06 Thread Sunil Kothiyal
Thanks my dear you save my JOB.. pip install --only-binary :all: mysqlclient Work for me On Thu, Sep 6, 2018 at 5:38 PM Rodrigo Zayit wrote: > Try: > > pip install mysqlclient==1.3.4 > > and if this command does not work, try it: > > pip install --only-binary :all: mysqlclient > > Att., > Rodr

Re: Django Nested Query with Aggregate.Sum()

2018-09-06 Thread Simon Charette
Hello there, You should be able to achieve what you're after by using annotations[0]. In your case you'll want to declare your Event and Reservation relationship explicitly by using a ForeignKey class Event(models.Model): ... seating = models.PositiveIntegerField(default=0) class Reser

Re: Subgroups Implementation (from LDAP)

2018-09-06 Thread Benjamin SOULAS
Hi Mike ! The problem is our app have to be able to retrieve a Customer LDAP server. So we won't be able to know groups will be into the LDAP server. To be concise, when we'll set up the app, we'll have to retrieve the LDAP groups, insert them in django ORM, then make the link (with a table, so

Re: How to get datetime from server

2018-09-06 Thread Thiago Luiz Parolin
Sorry, my mistake! In manage.py runserver, the server is my computer and the time displayed is my computer time. Putting the code in production server all work as expected! Em qui, 6 de set de 2018 às 10:29, Thiago Luiz Parolin < thiago.paro...@unesp.br> escreveu: > Hi, > I am building a django

How to get datetime from server

2018-09-06 Thread Thiago Luiz Parolin
Hi, I am building a django system that prevent user from upload a file after a date. This date is setting using: today = datetime.date.today() but if the user alters his computer date, he can upload file normally after the end date. how can i assing to 'today', the date from server and not client

Re: How do I display the human readable name of a choice?

2018-09-06 Thread Ousseynou Diop
Hi friend , use this function to display the choices field. models.py class Article(models.Model): ARTICLE_CHOICES = ( ) status = models.CharField(max_length=120, choices=ARTICLE_CHOICES, ) in your templates {% article in articles %} {{artcile.get_status_display}} {% end

Re: How to get datetime from server

2018-09-06 Thread ireoluwa fakeye
It's better you import from django.util On Thu, 6 Sep 2018, 17:08 Thiago Luiz Parolin, wrote: > Hi, > I am building a django system that prevent user from upload a file after a > date. > This date is setting using: > today = datetime.date.today() > > but if the user alters his computer date, he

Getting no such table: django_session error after enabling social_django in a project

2018-09-06 Thread Ajat Prabha
Hi, After adding social_django to this project, in some of the pages, the server is throwing OperationalError no such table: django_session, which is kind of weird because it is there. Most of the functionality is working fine but some things lik

Re: Subgroups Implementation (from LDAP)

2018-09-06 Thread Mike Dewhirst
On 7/09/2018 12:49 AM, Benjamin SOULAS wrote: Hi Mike ! The problem is our app have to be able to retrieve a Customer LDAP server. So we won't be able to know groups will be into the LDAP server. To be concise, when we'll set up the app, we'll have to retrieve the LDAP groups, insert them in

Re: How do I display the human readable name of a choice?

2018-09-06 Thread Joel
This is clearly described in the polls application tutorial. https://docs.djangoproject.com/en/2.1/intro/tutorial01/ On Thu 6 Sep, 2018, 9:38 PM Ousseynou Diop, wrote: > Hi friend , > > use this function to display the choices field. > > models.py > > > class Article(models.Model): > > ARTIC

Creating a single page app

2018-09-06 Thread Md.iftequar iqbal
Can we create a single page app that performs CRUD(Create, Read, Update, Delete) operations by using class-based views -- 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 ema

Contributing to Django

2018-09-06 Thread Sanjeev Singh
Hello, I’m a beginner want to contribute please help me in solving some easy bugs so that I can get started. Thank you. Sent from Mail for Windows 10 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and s

Re: about createsuperuser

2018-09-06 Thread mm34019
Check url path in setting.py and restart the server then follow the 127.0.0.1/admin/ On Thursday, September 6, 2018 at 4:51:16 AM UTC-7, VIPIN VIPIN wrote: > > I had already used admin/ > > On Thu, 6 Sep 2018, 5:13 pm ireoluwa fakeye, > wrote: > >> Put /admin after 127.0.0.1 >> >> On Thu, 6 Sep

Re: about createsuperuser

2018-09-06 Thread Ronaldo Mata
Check your urls.py, is it admin registered? El jue., sept. 6, 2018 10:05 PM, escribió: > Check url path in setting.py and restart the server then follow the > 127.0.0.1/admin/ > > On Thursday, September 6, 2018 at 4:51:16 AM UTC-7, VIPIN VIPIN wrote: >> >> I had already used admin/ >> >> On Thu,

Re: Creating a single page app

2018-09-06 Thread Andréas Kühne
Short answer - yes it's possible, but not optimal. Long answer: A single page app isn't really dependent that much on the view that you use but rather some sort of javascript frontend. You will need to use a js frontend like Vue, React or Angular. The backend should probably then be based on a res

Re: Contributing to Django

2018-09-06 Thread Andréas Kühne
Hi, I think you really should get some experience with writing applications in django before you start contributing to the project itself. The django project is rather complex and it takes a while to understand the concepts behind it. I have been working with django for 5 years now and haven't fou

Re: Creating a single page app

2018-09-06 Thread Md.iftequar iqbal
Which is the best best frontend js for django On Fri, 7 Sep 2018, 10:34 am Andréas Kühne, wrote: > Short answer - yes it's possible, but not optimal. > > Long answer: > A single page app isn't really dependent that much on the view that you > use but rather some sort of javascript frontend. You

Re: Contributing to Django

2018-09-06 Thread Sanjeev Singh
Hello Sir, I've already done some projects in django but now I want to contribute. I want to start this by solving some easy bugs, If you suggest some. Thank you. On Fri, Sep 7, 2018 at 10:37 AM Andréas Kühne wrote: > Hi, > > I think you really should get some experience with writing application

Re: Creating a single page app

2018-09-06 Thread Andréas Kühne
Sorry - that's a preference - more than a definitive answer. Personally I like Angular, but people will say Vue or React just as much. That's up to what you prefer yourself. Regards, Andréas Den fre 7 sep. 2018 kl 07:20 skrev Md.iftequar iqbal : > Which is the best best frontend js for django

Re: Contributing to Django

2018-09-06 Thread Andréas Kühne
That's good if you think you have that experience. Contributing back is always good :-) However - if you want to discuss this, I think you should change to the developers mailing list instead. They can probably help you. Or just go and check the issues on the django project and see if you can help

Re: Contributing to Django

2018-09-06 Thread Sanjeev Singh
Thank you for replying me back Sir, It will be great help for me if you can provide me some links where I should go for that, how I can jump into this. Thank you. On Fri, Sep 7, 2018 at 11:12 AM Andréas Kühne wrote: > That's good if you think you have that experience. Contributing back is > al

Re: Subgroups Implementation (from LDAP)

2018-09-06 Thread Benjamin SOULAS
Actually, I don't use ldap groups permission really, I have just configured my settings in which AUTH_LDAP_GROUP_SEARCH looks for a posixGroup Type (it is what I use for now, but in the future, it would be logical there will have GroupOfName and other types). My aim is to use django-auth-ldap o

Re: Contributing to Django

2018-09-06 Thread Michal Petrucha
On Fri, Sep 07, 2018 at 11:36:27AM +0530, Sanjeev Singh wrote: > Thank you for replying me back Sir, It will be great help for me if you can > provide me some links where I should go for that, how I can jump into this. > Thank you. Hi Sanjeev, Really cool that you want to get involved! I'd sugges