ModelAdmin

2023-01-04 Thread Mario St-Gelais
this is implemented in the admin view is rather good. Alternatively, what approach can be used in django? Thanks Mario -- 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, sen

Re: I am unable to view images in webpage which is given in html

2022-11-03 Thread Mario Shaya
employeedetail.empPhoto.url Le jeudi 3 novembre 2022 à 22:13:41 UTC+3, subtitle indo a écrit : > Sorry to write again so quickly. > > On Thu, Nov 3, 2022 at 10:15 AM muwaga micheal wrote: > >> Can you share the code? >> >> On Wednesday, November 2, 2022 at 3:11:37 PM UTC+3 MaheshKumar wrote: >>

Re: I was facing Type Error

2022-11-03 Thread Mario Shaya
could you show your code? Le jeudi 3 novembre 2022 à 22:48:22 UTC+3, subtitle indo a écrit : > Please let me know if that is okay. > > On Wed, Nov 2, 2022 at 6:37 AM MaheshKumar wrote: > >> Today i created the project to create an database and then to display >> those datas in database in list

Re: Cumulative Sum per month

2020-03-14 Thread Mario Bisiani
sum = np.cumsum(raw_data) Il giorno mercoledì 11 marzo 2020 16:42:57 UTC+1, Mario Bisiani ha scritto: > > Thank you Micheal. This function is the OVER clause of sql. I think the > running sum in a chart is a very common thing and I would like to know if > someone has a snippet or piece o

Re: Cumulative Sum per month

2020-03-11 Thread Mario Bisiani
1, Michael Macintosh ha scritto: > > You might want to use window functions > > > https://docs.djangoproject.com/en/3.0/ref/models/expressions/#window-functions > > to calculate the sum per month. Haven't personally used them yet though. > On 3/11/2020 8:27 AM, Mario Bisiani w

Re: Cumulative Sum per month

2020-03-11 Thread Mario Bisiani
Yes. I am using Chart.js. Any help? Il giorno giovedì 5 marzo 2020 13:42:18 UTC+1, krnrrr ha scritto: > > what do you mean by "cumulative"? if we have aggregate sums like > > jan = 100 > feb = 150 > mar = 120 > > you want to have output as > > jan = 100 > feb = 250 > mar = 370 > > ? > -- You

Cumulative Sum per month

2020-03-03 Thread Mario Bisiani
Hi! I would like to know the best way to have the cumulative sum per month plottable to chartjs for example. My models.py has one field for date and one for decimal number. Thanks to you all! -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Get last instance object per each month and sum per month in Django

2020-02-26 Thread Mario Bisiani
how to do it > in Django orm but in sql is the most effective way to solve the issue and > it's a lot let expensive than taking all the activities and then search in > the status Table. > my 2 cents > Agnese > > On Tue, 25 Feb 2020 at 21:07, Mario Bisiani > wrote:

Re: Get last instance object per each month and sum per month in Django

2020-02-26 Thread Mario Bisiani
up by activity and a partition by >> month then take each partition and sum the record up, i don't know how to >> do it in Django orm but in sql is the most effective way to solve the issue >> and it's a lot let expensive than taking all the activities and then search >&g

Get last instance object per each month and sum per month in Django

2020-02-25 Thread Mario Bisiani
I tryed to search for answer but nothing yet can help me. I have one class model Activity and a class model Status : class Status(models.Model): activity = models.ForeignKey(Activity, on_delete=models.CASCADE, related_name="all_status") status_date = models.DateField()

Re: Hosting a django website

2020-01-28 Thread Mario R. Osorio
I prefer digital ocean but by whatever you choose by any means, avoid cpanel. On Saturday, January 25, 2020 at 1:42:13 PM UTC-5, Perceval Maturure wrote: > > dear all > 1.what is the best way to host a django website on a shared host that you > are not sudo? > 2.is this possible? > 3. any

Calculation field - best practice

2020-01-21 Thread Mario Bisiani
Good morning, first post here! I have a quesion for you. I need to have a calculated field from two attribute of different class in model.py. Which is the best practice to perform calcs : in model.py by function or in the view.py? In the case of model.py how can i access the atribut of the

Re: Anyone used RENDER product for hosting?

2019-10-11 Thread Mario R. Osorio
I like Digital Ocean On Tuesday, October 8, 2019 at 5:33:27 AM UTC-4, ram.mullapudi wrote: > > > Hello, > > I'm looking for cheaper, secure and reliable way to host my website? The > site is being developed on DJango FWK. We are currently on GCP and also > reviewed other popular vendors too. I

Re: django calendar app

2019-09-27 Thread Mario R. Osorio
HTH: https://djangopackages.org/grids/g/calendar/ On Thursday, September 26, 2019 at 10:48:13 AM UTC-4, Perceval Maturure wrote: > > > Dear all > > i am looking for a django calendar app/package compatible with python 3.7 > , django 2.1 and django cms 3.6.0. > > Any ideas, please let me know

Re: Python +django

2019-09-10 Thread Mario R. Osorio
I must agree that video tutorials are harder to follow, specially if and when they are if at least a bit outdated. I used to hate them however; I've learned to appreciate them specially because of one reason: *YOU CANNOT COPY AND PASTE.* Written tutorials don't help you go thru the full

Re: how to pass user input into raw sql query ?

2019-09-07 Thread Mario R. Osorio
*Do not use string interpolation* as proposed by Bhoopesh!!! Take a look at: - SQL injection - SQL injection protection

Re: Chat

2019-09-06 Thread Mario R. Osorio
Tienes muchas opciones: - TUTORIAL: Real-time chat with Django, Twisted and WebSockets – Part 1 - Creating a chat with Django Channels

Re: How can i share one Database Sqlite between 2 app on pythonanywhere

2019-09-04 Thread Mario R. Osorio
You have at least 2 possibilities, depending on your exact needs: 1- The preferred method is to Import the models from the app they reside at, like in: *from foo_app.models import bar_model* 2- You could also have the models you need to share created at the project level thus making

Re: confusing about running some codes in django

2019-08-29 Thread Mario R. Osorio
That code is meant for you to type it in the python console however, you could also include it pretty much anywhere in your code. On Wednesday, August 28, 2019 at 9:15:20 AM UTC-4, Vahid Asadi wrote: > > Hi . > when i read the django docs,it suggested that running some code but it > does not

Re: How can I switch AUTH_USER_MODEL for each application?

2019-08-27 Thread Mario R. Osorio
I think this is what you're looking for: https://docs.djangoproject.com/en/2.2/topics/db/multi-db/ HTH! On Monday, August 26, 2019 at 10:12:06 AM UTC-4, Sim wrote: > > https://docs.djangoproject.com/en/2.2/ref/settings/#databases > > DATABASES in settings.py is a dict() and use

Re: UI for python windows applications

2019-08-22 Thread Mario R. Osorio
You might want to take a look into Kivy (https://kivy.org/ ) HTH On Wednesday, August 21, 2019 at 1:46:57 PM UTC-4, ARAVIND BALAKRISHNAN wrote: > > Can anyone suggest me any modern UIs for python application in windows > other than electron > -- You received this

Re: Populating django admin inline fields with javascript

2019-07-16 Thread Mario Sassmann
OK I solved the problem. I accidently set the primary keys (hidden fields) when populating the inline forms with javascript. Am Dienstag, 16. Juli 2019 21:49:10 UTC+2 schrieb Mario Sassmann: > > Hi! > > I'm trying to write an importer for populating admin model fields with >

Populating django admin inline fields with javascript

2019-07-16 Thread Mario Sassmann
Hi! I'm trying to write an importer for populating admin model fields with existing model data: This is my approach: I modified the admin view for the specific model and added a form including select boxes to choose the existing model and a button to start the import. As I'm using drf for

Re: No puedo generar qr en django

2019-05-21 Thread Mario R. Osorio
Osman, Un codigo QR no es otra cosa que una forma compacta de representar informacion. Sin embargo, existen varios tipos de codigos QR. Lo primero que tienes que hacer es seleccionar que es lo que vas a representar con el codigo; podria ser simplemente el identificador unico del empleado o,

Re: Generate CUID Client Side

2019-05-17 Thread Mario R. Osorio
This question is OT however; *cuid *being a js library, what you have to do is have your templates include the necessary libraries and make use of them. On Thursday, May 16, 2019 at 9:09:13 AM UTC-4, Timothy Cook wrote: > > I have a project where I want to generate a CUID client side to send

Re: More controls on createsuperuser

2019-04-30 Thread Mario R. Osorio
is a waste of time. Dtb/Gby === Mario R. Osorio B.A.S. of Information Technology Web page: *http;//mario.osorio.solutions <http://http%3B//mario.osorio.solutions>* Email: *mario@osorio.solutions* *Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf> *SQL programme

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Mario R. Osorio
I'm sure you won't regret it. Dtb/Gby === Mario R. Osorio *Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf> *SQL programmers don't die, they just ROLLBACK the TRANSACTION.* On Tue, Mar 26, 2019 at 3:04 PM Chafid Ahmad wrote: > Thanks everyone for the su

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Mario R. Osorio
Of course you can however, IMHO; it is better to use whatever is closest to the real McCoy. Two options I can think of are: 1) Use Docker images. It is not very hard to work with Docker images however, it does add a bit of difficulty to your workload. 2) Use a Linux image in VirtualBox. It

Re: Missing manage.py & settings.py

2019-03-04 Thread Mario Martinez
Did you run the django-admin startproject your_project_name command? On Fri, Mar 1, 2019, 6:13 PM lujate wrote: > I pip installed a Django project, but it doesn’t have a manage.py or > settings.py. I checked the repo on GitHub, and those files don’t exist > there either. Is this an alternate

Re: How to display file tree using Django. Help, please!

2019-02-08 Thread Mario R. Osorio
If you're just looking into just presenting trees, you might want to check How TO - Tree View (https://www.w3schools.com/howto/howto_js_treeview.asp) or Bootstrap Tree View (https://github.com/jonmiles/bootstrap-treeview, http://jonmiles.github.io/bootstrap-treeview/) If you are looking for

Re: Django payment through different methods

2019-01-22 Thread Mario R. Osorio
Take a look here: https://djangopackages.org/grids/g/payment-processing/ On Monday, January 21, 2019 at 7:36:23 PM UTC-5, Bikash Saud wrote: > > I'm trying to payment from different methods like paypal, or other way. I > did not have idea please help me > -- You received this message because

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Mario R. Osorio
I'm not an expert, but this article seems like a good start: How to Configure Multiple Databases in Django the Simple Way https://strongarm.io/blog/multiple-databases-in-django/ On Monday, January 7, 2019 at 1:49:15 PM UTC-5, Sanderson Carmona wrote: > > Good afternoon, > > I'm using the latest

Re: simple boy start learn python

2019-01-07 Thread Mario R. Osorio
Sorry, I forgot to include the link for the book: https://www.obeythetestinggoat.com/ Dtb/Gby === Mario R. Osorio B.A.S. of Information Technology A.S. of Computer Programming and Analysis Web page: *http;//mario.osorio.solutions <http://http%3B//mario.osorio.solutions>* Email:

Re: simple boy start learn python

2019-01-07 Thread Mario R. Osorio
These are some of the best resources I've ever found on the subject: - - Obey the Testing Goat! (You can buy they book or read it online for free) - TaskBuster Django Tutorial (might be a bit outdated but I'd still go thru it)

Re: bootstrap for vertical (two column spam)

2018-12-20 Thread Mario Martinez
Your table heading {% for title in your_list %} {{ title }} {% endfor %} On Wed, Dec 19, 2018, 9:59 PM Ketan Hi, > > > > I am facing challenge for creating UI in html5 for Django project. I > have almost 100 records (not fixed) in one table with column id and > relevant title. I am

Enterprise web application with admin interface

2018-12-17 Thread Mario Daniel Carugno
Hi everyone ! My question is simple: *Is possible (or good) to build an enterprise web application using only > the admin interface ?* I've heard that the admin interface is very customizable/extensible, so it sounds like a great idea. Thanks ! -- You received this message because you are

Re: Trigger actions independently of url request

2018-10-29 Thread Mario R. Osorio
I'm far from being an expert but I think yours is a rather simple operation that needs to be executed every n minutes. I think that in the case you're explaining, Celery is an overkill. Why not go with a cron job? You might want to create a combination of bash and python scripts to do exactly

Re: Django Produces Python?

2018-06-12 Thread Mario R. Osorio
I've tried multiple managed hosting and they all have limitations that will eventually go against your expansion needs. The best example I can think of is the fact that in most of these services you cannot compile, and some of python's libraries do require compiling. I favor Virtual Private

Re: what does the below mentioned error means and how do i resolve this error.something is wrong with my admin.py file.Please comment:

2018-06-08 Thread Mario R. Osorio
Looks like you skiped a huge part of the tutorial. you might to go back... On Thursday, June 7, 2018 at 11:08:15 AM UTC-4, Avitab Ayan Sarmah wrote: > > In windows powershell: > > ERRORS: > : (admin.E108) The value of > 'list_display[0]' refers to 'question_text', which is not a callable, an >

Re: How do you deal with two third party apps with the same App label?

2018-05-21 Thread Mario R. Osorio
ication-users > > I believe this would solve the ImproperlyConfigured exception as on your > settings.py on your INSTALLED_APPS you would have the apps with different > names. > Hope it helps! > > On Saturday, May 19, 2018 at 10:54:02 PM UTC-3, Mario R. Osorio wrote: >> &g

How do you deal with two third party apps with the same App label?

2018-05-19 Thread Mario R. Osorio
Hello everyone, In Django 2.0.5; I want to use python-twitter and allauth's twitter provider and both these apps use the same App label which results in the *django.core.exceptions.ImproperlyConfigured: Application labels aren't unique* error I have searched the internet and found no

Re: Integrating cryptoassets.core library in django

2018-05-02 Thread Mario R. Osorio
You need to give more details, such as: - Did you PIP the application? - Did you remember to add it to INSTALLED_APPS? On Wednesday, May 2, 2018 at 7:10:31 AM UTC-4, Hitesh Goyal wrote: > > Hi, > I am trying to configure the cryptoassets.core library for bitcoin > applications using

Re: Wich OS for develop?

2018-01-02 Thread Mario Gudelj
Mac or Linux with PyCharm. Windows can be used but you may struggle with some Python packages which work well and are easily setup on nix. On Wed, 3 Jan 2018 at 8:40 am, Mike Morris wrote: > I've been linux only for many years - the last Windows I used was 2000 >

Re: authentication by ldap server

2017-12-01 Thread Mario Gudelj
You should use django-auth-ldap. It will give you the ability to bind ldap attributes with the attributes from your user model using a dict inside settings. It’ll also get the users’ groups and create those groups inside Django. So try plugging that in and come back if you get stuck. All you

Re: How do I customize registration form HTML?

2017-12-01 Thread Mario Gudelj
I’d recommend you to look at crispy forms as well. On Sat, 2 Dec 2017 at 1:29 am, yingi keme wrote: > Hey, i made a mistake in the previous reply. Its widget and not widgets. > The correct code is: > > > Intead of rendering it with the as_p. You can render them

Re: Supervisor FATAl Exited too quickly (process log may have details(About inet_http_server and unix_http_server)

2017-09-09 Thread Mario Gudelj
Does that Guniorn command run directly from the command line? What's gunicorn.pod? Make sure you can start gunicorn outside of supervisor and then stick that command into conf file. Cheers, M On Sun, 10 Sep 2017 at 2:28 am, Jonathan Cheng wrote: > I wrote a Django

Re: facing an error from many hours

2017-06-23 Thread Mario Gudelj
Or kill all python processes or try a different port in your config On Fri, 23 Jun 2017 at 11:41 pm, Matthew Pava wrote: > I’ve had this problem a few times. First, try updating PyCharm. I find > when I click on my runserver icon, I just keep clicking it until it works.

Re: database update after paypal payment

2017-03-01 Thread Mario Gudelj
You should use Django-PayPal app. It has views for IPN and PDT, stores transaction details in DB, does TX verification and it fires of a signal when when a successful transaction comes in to your webhook. All you have to do is specify some URLs and settings. It'll even render that front end form

Re: Why was Roberto Rosario silently removed from the Django Software Foundation?

2016-11-13 Thread Mario R. Osorio
*puts on DSF's Outsider hat* (ooops, hes's an outsider anyways) FROM MY PERSPECTIVE AND THE LITTLE DATA I COULD COLLECT: Mr Rosario might just be going through a Morphine down because of the medical procedure he is going through (been there myself!). Some people just have a very bad time out

Re: Minify HTML in Django

2016-11-01 Thread Mario Gudelj
Take a look at Django Compressor. On Tuesday, 1 November 2016, Web Architect wrote: > Hi, > > Is there an optimal and efficient way to minify HTML in Django? > > I tried using django-htmlmin but it's affecting the performance. > > Thanks. > > -- > You received this message

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
Dtb/Gby === Mario R. Osorio A.S. of Computer Programming and Analysis Web page: *http;//mario.osorio.solutions <http://http%3B//mario.osorio.solutions>* Email: *mario@osorio.solutions* <mario@osorio.solutions> *Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
, along with a rest api such as Django REST framework (www. django-rest-framework.org) or Tastypie (tastypieapi.org). You might also ant to make use of kivy (kivy.org) for the user interface. HTH Mario Osorio On Monday, October 24, 2016 at 7:14:52 AM UTC-4, Dam ian wrote: > > Hi, > > I

Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
Thanks a lot for your help Dylan, Right after writing I noticed my mistake, I was naming the folder my_app/management/command I renamed it my_app/management/commands and voila!. it worked like a charm. Dtb/Gby === Mario R. Osorio A.S. of Computer Programming and Analysis Web page: *http

Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
By the way, there are *__init__.py* files in both my_project/my_app/management/ and my_project/my_app/management/command folders ... On Sunday, October 16, 2016 at 9:58:25 PM UTC-4, Mario R. Osorio wrote: > > I am trying to implement a custom admin command. The class is l

Custom Admin Command

2016-10-16 Thread Mario R. Osorio
I am trying to implement a custom admin command. The class is located at mt_project/my_app/management/command/my_command and looks like this: class Command(BaseCommand): help = 'This is my command' def handle(self, *args, **options): ... My app is included in Installed_apps. I think

Re: Add rows in migrations?

2016-10-05 Thread Mario R. Osorio
You can do that with fixtures: https://docs.djangoproject.com/en/1.10/howto/initial-data/ On Tuesday, October 4, 2016 at 7:21:07 PM UTC-4, Victor Porton wrote: > > After generating DB scheme, I need to add two rows with certain data to > certain table. > > How to do it? > > Can it be handled

Re: How make Django sites look as professional as WordPress just as easily as WordPress is easy?

2016-08-15 Thread Mario Gudelj
It all depends what you want to do, Chris. I suggest you to find a html template on sites like template monster or theme forest, split it into base and extract page from it, make Django serve the static pages and then make those features that should be driven by database dynamic by creating models

Re: Help me!!! django

2016-06-30 Thread Mario Gudelj
There's a nice LDAP app for Django at https://pypi.python.org/pypi/django-auth-ldap/1.2.8 but I'm not sure if it's suitable for what you need to do. I think you need a Python LDAP module to create a connection, bind, perform a simple search and then parse the results to get those email addresses.

Re: HTTP2 Server Push with Django?

2016-06-28 Thread Mario R. Osorio
Here are some resources: - Django Push HTTP Response to users - Django Packages - django-push-notifications

Re: Disappearing desktop icons

2016-04-21 Thread Mario Gudelj
I think you're posting this to a wrong list Gary. This od django list. On Friday, 22 April 2016, Gary Roach wrote: > Debian Stretch system > amd64 system > > A couple of weeks ago I updated my system and all of my desktop icons > start looking as shown in attachment.

Re: Fabric - Someone has a fabfile to build a Sentry server?

2016-04-05 Thread Mario Gudelj
Look for fabulous on GitHub. It sets up all of that on ec2. On Wednesday, 6 April 2016, Neto wrote: > I need a fabric to install Sentry, Redis, and configure the server with > nginx template, supervisor etc. > I have a Amazon Instance, and I want with a command

Re: Looking for ways to improve my skills

2016-04-03 Thread Mario R. Osorio
Hi Devrhoid, I'm not an expert myself but, as with anything else; it is nothing but your own needs that will improve your knowledge. I can recommend what I think is the very best Django tutorial EVER, bar none ( http://www.marinamele.com/taskbuster-django-tutorial) It does, however introduce

Re: Django's search

2016-03-28 Thread Mario Gudelj
http://stackoverflow.com/questions/3538999/django-admin-search-how-to-override-the-default-handler On Monday, 28 March 2016, wrote: > I need know how change the search that come with Django's Admins. > > -- > You received this message because you are subscribed to the

Re: Development of web based image processing package

2016-03-10 Thread Mario R. Osorio
I know nothing about the subject, but I stumbled upon this article I think might be useful in your endeavor: Fundamentals of Image Processing - behind the scenes On Thursday, March 3, 2016 at

Re: Python on the web

2016-03-09 Thread Mario R. Osorio
There you are: http://hlevkin.com/Shell_progr/hellopython.htm Please send the $20 to my paypal account... On Monday, March 7, 2016 at 10:51:53 AM UTC-5, Gregg Turner wrote: > > Hey, > > Need a simple python script put into a website. It uses the requests > module. > > $20? Any takers? > --

Re: Alternative Amazon S3?

2016-02-25 Thread Mario Gudelj
Give cloudinary a go. It's really good especially for images and pdf On Friday, 26 February 2016, Andrew Pinkham wrote: > Heroku should be treated as the stateless portion of an app - do not store > long term data there! (Same goes with services like EC2 and Digital

Re: django css: general query on CDNs and crispy forms

2016-02-23 Thread Mario Gudelj
You're missing a comma after my app inside installed_apps. You can load bootstrap from cdn inside head, before your custom style sheet. Not a problem there. Pip install crispy forms. They'll end up in your site-packages folder. No need to download it and put it inside your project. Run

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
> > y So this is effectively a feed aggregation engine. I would recommend > having a separate daemon running per media source, so that issues with one > media source do not affect the operations of another. > I never would have thought of this application as a feed aggregation engine, but

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
> > I suggest that you use Celery. > A very useful tip! > > If people are making HTTP requests of you, that is reason enough to choose > Django. > Well, let me put it this way; I felt in love with Python almost 7 years ago, but when I met Django, this love turned into an obsession you see;

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
I understand HTTP requests are short lived, I just could not figure out how to handle the possible long responses, I' m rather new to python AND to web programming and when I start mixing things like WSGI my brain just burst. I know about celery, just never thought it would be my allied in this

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
Thanks to each and every one of you for the VERY HELPFUL recommendations you have given me (Avraham Serour, ke1g & James Schneider so far) I really got back more than I expected, but as I told a friend of mine; it was worth every minute of the almost 4 hours it took me to redact this question,

Kind'a TL, but please DR - Need your thoughts

2016-01-31 Thread Mario R. Osorio
I need comments on an application I have been recently proposed. The way it is being envisioned at this moment is this: One python daemon will be listening for different communications media such as email, web and SMS (web also). IMHO, it is necessary to have a daemon per each media. This

css color for row based on fieldValue in admin.TabularInline

2016-01-11 Thread Vanhecke Mario
Hi, Does anyone know how I can set the css class for a field or row based on the fieldValue in the TabularInline? Thx -- 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: How to show a list of products as checkboxes?

2016-01-08 Thread Mario R. Osorio
Hmmm... not THE expert here , but it looks like your original question is not properly stated as you asked about checkboxes and did NOT mention radio buttons. They might look very much alike but are 2 very different controls, with very different behavior and uses. On Thursday, January 7, 2016

Re: Choice and choice

2016-01-06 Thread Mario R. Osorio
Choice is a class and choice is an instance of that class. You might want to check your knowledge of python before trying django... On Wednesday, January 6, 2016 at 8:07:16 AM UTC-5, 林攀 wrote: > > > dear: > in djano the first app what is difference between Choice and > choice ? I

Re: Trouble with Django Tutorial Part 2

2015-12-09 Thread Mario Gudelj
Did you mix up https://docs.djangoproject.com/en/1.8/intro/tutorial01/ and https://docs.djangoproject.com/en/1.9/intro/tutorial01/? 1.9 has apps.py inside polls directory and 1.8 tutorial doesn't. So, I think you have INSTALLED_APPS setting from 1.9 tutorial inside 1.8.7 project... On Thu, 10 Dec

Re: I want to make todo List

2015-09-27 Thread Mario R. Osorio
Ram, are you doing this for homework?? On Saturday, September 26, 2015 at 6:46:56 AM UTC-4, Ram Lakhan Agarwal wrote: > > I want step by step procedure to make todolist > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Django deployment

2015-09-18 Thread Mario Gudelj
Try this guide http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ On 18 Sep 2015 6:55 am, "Hugo Kitano" wrote: > What is the nginx config? And where do I find it? > > On Tuesday, September 15, 2015 at 12:46:40 PM UTC-7, Shawn Milochik

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-10 Thread Mario Gudelj
+1 angular. Stack overflow is your friend and there's a lot of angular on it. You can do a lot with it with basic knowledge as well. And template syntax will make sense going to it from django On 10 Sep 2015 3:53 pm, "Gergely Polonkai" wrote: > Hello, > > this is a bit off

Re: Try Django 1.8 Tutorial 37 on Youtube - Bootstrap Design Falls Apart In Production

2015-07-19 Thread Mario Gudelj
Your static assets aren't loading. Normally in production you'd setup nginx or apache to do this job. Have you done that? On 17 Jul 2015 7:24 am, "Chris Nowak" wrote: > I'm following this Youtube tutorial as I'm learning Django, and around the > 11 minute mark, after the

Búsquedas en una aplicacion

2015-07-06 Thread Mario R. Osorio
Carlos, este grupo es en inglés. Puedes buscar duda en español en: https://mail.python.org/mailman/listinfo/python-es Yo no te ayudo porque no tengo experiencia en el tema además, tu pregunta es un poco escueta. Falta mucha información -- You received this message because you are subscribed

Búsquedas en una aplicacion

2015-07-06 Thread Mario R. Osorio
Carlos, este grupo es en inglés. Puedes buscar duda en español en: https://mail.python.org/mailman/listinfo/python-es Yo no te ayudo porque no tengo experiencia en el tema además, tu pregunta es un poco escueta. Falta mucha información -- You received this message because you are subscribed

Búsquedas en una aplicacion

2015-07-06 Thread Mario R. Osorio
Carlos, este grupo es en inglés. Puedes buscar duda en español en: https://mail.python.org/mailman/listinfo/python-es Yo no te ayudo porque no tengo experiencia en el tema además, tu pregunta es un poco escueta. Falta mucha información -- You received this message because you are subscribed

Re: DateField(blank=True), null?

2015-06-25 Thread Mario Gudelj
Did you migrate? You don't have to manually edit your schema. Use migrations or south if you're using 1.6 or below. On 26 Jun 2015 8:41 am, "Sidh Tanna" wrote: > Its not work dear, ou have any other solution? > > On Monday, August 14, 2006 at 12:09:53 PM UTC+5:30, Bryan

Re: Django plugin

2015-06-15 Thread Mario Gudelj
You can use celery and periodic tasks to scan for new orders every 5 minutes and send email notification of the new order is there. On 12 Jun 2015 6:59 pm, "'Tom Evans' via Django users" < django-users@googlegroups.com> wrote: > On Thu, Jun 11, 2015 at 8:02 PM, Andreas Kuhne >

RE: new to Django having models/views/templates question

2015-06-03 Thread Mario Gudelj
By creating a foreign key to it. On 3 Jun 2015 8:07 pm, "Chris Strasser" wrote: > Hi James, Thanks again for responding. > > I didn’t post my actual models as they are quite large and my problem is > more about understanding proper technique than anything. Self.name did

Re: django-allauth without username, login with facebook doesn't work

2015-05-13 Thread Mario Gudelj
Sorry man. My mistake. So are you saying that you have a link with onclick or something? Do you get the JS error? Is it logged inside your browser's console? It's a bit hard to tell without more code or the URL... On 14 May 2015 at 03:12, Fellipe Henrique <felli...@gmail.com> wrote: >

Re: Django model inheritance: create sub-instance of existing instance (downcast)?

2015-05-12 Thread Mario Gudelj
Have you had a look at http://django-model-utils.readthedocs.org/en/latest/managers.html#inheritancemanager? I'm not sure if it will help but it's kind of related to what you've posted. On 12 May 2015 at 23:10, guettli wrote: > Hi, > > this ticket is seven years old > >

Re: django-allauth without username, login with facebook doesn't work

2015-05-12 Thread Mario Gudelj
What do you mean by nothing happens? Do you get taken to FB? Here's what I have in my setup which may help: The template link looks like this: Facebook Make sure you have the following line in your urls.py: url('', include('social.apps.django_app.urls', namespace='social')) settings.py:

Re: How to go about building complicated web apps with django?

2015-05-12 Thread Mario Gudelj
"Should I start building a basic web app and then iteratively" <<< This. Then buy this book https://highperformancedjango.com/ after you've done things like these http://www.revsys.com/blog/2015/may/06/django-performance-simple-things/ On 13 May 2015 at 11:04, akshat

Re: What is the ideal web server to use with Django?

2015-05-12 Thread Mario Gudelj
The most common setups I came across are Nginx + Gunicorn and Nginx + uWSGI. Nginx + Gunicorn is really easy to setup and it will probably be sufficient. You just need to have enough Gunicorn workers running for your amount of traffic. I really like this setup

Re: Use 3rd party django package in my own project (PYTHONPATH)

2015-05-11 Thread Mario Gudelj
Have you looked at https://django-model-report.readthedocs.org/en/latest/installation.html ? After you add it to "INSTALLED_APPS" (I guess that's what you meant by adding it to 'Installed_Packages') you need to create reports.py etc. The instructions on RTD are pretty good... On 12 May 2015 at

Re: Fields outside Aggregation functions

2015-05-04 Thread Mario Gudelj
Can you perhaps order by price and get first and last items? On 4 May 2015 8:48 pm, "Alex-droid AD" wrote: > > > There is example in Django documentation about using Aggregate and > Annotate clauses > > The same rules apply to the aggregate() clause. If you wanted to

Re: importing csv data into database

2015-04-26 Thread Mario Gudelj
Remove comma from each line inside the for loop. On 27/04/2015 10:44 am, "sum abiut" wrote: > Hi Andrew, > Thanks heaps. do you mine explaining how to fix that. > > cheers, > > On Mon, Apr 27, 2015 at 4:26 AM, Andrew Farrell > wrote: > >> What I'm

Re: Best practice for passing JSON objects to a template

2015-04-22 Thread Mario Gudelj
I often use method 2. I don't see a problem with it. On 10 April 2015 at 02:08, Eric Plumb wrote: > Hi Djangoers! > > Sometimes in the course of human events it becomes necessary to encode a > JSON object directly into a template. We all prefer AJAX and REST APIs and >

Re: Host a web application

2015-04-22 Thread Mario Gudelj
Sign up for AWS, fire up a free micro instance and host on that. You can have it up there in no time with something like https://github.com/gcollazo/Fabulous On 23 April 2015 at 00:52, Mario R. Osorio <nimbiot...@gmail.com> wrote: > > > www.pythonanywhere.com made it easier for me

Re: Host a web application

2015-04-22 Thread Mario R. Osorio
www.pythonanywhere.com made it easier for me to deploy than heroku On Wednesday, April 22, 2015 at 2:25:56 AM UTC-4, Kishan Mehta wrote: > > Hi , > > I have to show my web application project work to a potential employer. > Is it possible to host the demo somewhere? Any guide on this? > >

Re: Import error - No module named http

2015-03-18 Thread Mario Gudelj
And you should probably use suds for soap based apis. On 19/03/2015 4:24 am, "Andrew Farrell" wrote: > Actually, please listen to Guilherme over me; He seems to have correctly > spotted the omission. > > On Wed, Mar 18, 2015 at 11:45 AM, Andrew Farrell

Re: Edx LDAP Auth setting

2015-02-24 Thread Mario Gudelj
To check the version go to shell and run this: >>> import django_auth_ldap >>> django_auth_ldap.version (1, 1, 2) >>> As for virtualenv, it's a good practice but it's not necessary. By the way, have you tried performing a simple search on the LDAP server? I think that your best bet is to

Re: Question about form security.

2015-02-19 Thread Mario Gudelj
Because the user must be logged in to update their username you can get the current user from the request. You don't need to have their id inside the form. On 20/02/2015 9:49 am, "Chen Xu" wrote: > Hi > I am implementing a feature while building a website using Django, >

  1   2   3   4   5   >