Re: is that any way to deploy django in apache with centos

2019-06-01 Thread Ryan Nowakowski
Please post the specific error you're getting. On May 30, 2019 6:59:22 AM CDT, Kurosh Sol wrote: >is that any way to set Django in apache with wsgi mod in centos >I keep reading and still get error >any good resource can really work? > >-- >You received this message because you are subscribed

Atomic IntegerField increment based on another model instance

2019-06-01 Thread Ryan Causey
Assume the following models for this question: class Jurisdiction(models.Model): name = models.CharField(max_length = 100) class Account(models.Model): account_number = models.PositiveIntegerField(blank = True) jurisdiction = models.ForeignKey("Jurisdiction", on_delete = models. CASCA

Re: Atomic IntegerField increment based on another model instance

2019-06-02 Thread Ryan Causey
ues( "account_number", )[:1] ) + models.Value(1), ), default = 1, ) ) # Since we did an update we need to refresh ourselves from the db. self.refresh_from_db() On Saturday, June 1, 2019 at 8:44:29 PM UTC-7, Ryan Causey wrote: > > Ass

integrate vue js with django

2019-07-15 Thread Ryan Kite
This article has a working code sample for getting Vue and Django to work, NOTE: use the Git repo linked at the very end. The code samples in the articles are just for reading. https://medium.com/quick-code/crud-app-using-vue-js-and-django-516edf4e4217 -- You received this message because yo

Re: audit trail functionality in database model

2017-01-23 Thread Ryan Castner
Django Field History is a great project to audit trail a model field On Saturday, January 21, 2017 at 7:19:57 AM UTC-5, enrico baranski wrote: > > Hi all Django users, > > I'm quite new to Django and currently experimenting with the database > model. Defining fields appears to be quite intuitive

Re: issue with django's example version 1.10 in windows 7 ultimate

2017-02-03 Thread Ryan Castner
You need to post some source code for us to see what is going on, you are likely missing some lines of code On Friday, February 3, 2017 at 8:26:41 PM UTC-5, Dário Carvalho wrote: > > Hi. I'm new in django and in python either and of course as I'm new in > django, I installed 1.10's version and b

Re: Redirect from auth backend

2017-05-07 Thread Ryan Nowakowski
Usually the login_required decorator does this kind of thing for me. On May 5, 2017 6:53:21 AM CDT, roboslone - wrote: >Hello, > >I have an authentication backend, that authenticates users against a >remote service using session cookie. >Mentioned cookie can expire and remote service requires use

Re: recommendation for Django + Bootstrap

2017-06-29 Thread Ryan Nowakowski
I like starting with Pinax since it uses bootstrap by default. http://pinaxproject.com/ On Tue, Jun 27, 2017 at 06:55:29PM -0300, Alceu Rodrigues de Freitas Junior wrote: > Hello folks, > > Could you please recommend any options available to integrate Django and > Boostrap? > > I find out proj

Re: django autocomplete light

2017-09-16 Thread Ryan Nowakowski
If all dropdowns are on the same page, you probably need to create some views that return json, then hit those views with ajax. On September 15, 2017 9:25:42 PM CDT, "Ahmet Muazim Tunç" wrote: >I want to make two or three dropdown menus which are dependent on each >other. It's Country, City dr

Re: Getting my head around ForeignKey, One-To-Many and Many-To-Many.

2017-09-16 Thread Ryan Nowakowski
Instead of using ManyToMany in stencil, add a ForeignKey(EditorStencil) in vocab. On September 13, 2017 6:25:32 PM CDT, Jack Razors wrote: >I am creating a mindmap visio-like editor website using d3js and a >bunch of >custom javascript. Rather than the schema/stencils being populated by >sta

Re: What's the simple way to implement a chat system in Django?

2017-10-04 Thread Ryan Nowakowski
On October 2, 2017 9:55:55 AM CDT, Kishore Srinivas wrote: >I want to make a chat system in Django, but all those channel stuffs >looks >difficult , so are there any other simpler way to implement a chat >system, >thanks You could have each client poll for new messages using good old http g

Re: Azure AD SSO from django

2020-03-08 Thread Ryan Nowakowski
> I would the users of my django app to be able to use SSO using their Azure > AD creds. To me SSO means if they have already logged in to something > using > their ADA creds then when they go to my django app they get in > without having to enter any creds. I found a few packages that support > lo

Re: How to create entire basic of website design without using django-admin panel

2020-03-08 Thread Ryan Nowakowski
> login page based on roles (user, admin). insert data, update data, delete > data in (entire rows). only particular update data in table > display forms in css class. the entire page without using django > admin. only access front-end. > any reference complete project for learning. pleas

Re: send free sms on phone and email to user

2020-03-09 Thread Ryan Nowakowski
On March 9, 2020 1:17:22 AM CDT, sagar ninave wrote: >hello community, > >i want to send free sms on mobile phone and email through django so how >i >can do it For email, Django has great support built-in. For SMS, I think Twilio might have a free tier. -- You received this message because

Re: using two foreign keys in one django model

2020-03-09 Thread Ryan Nowakowski
On March 9, 2020 5:13:40 AM CDT, namo wrote: >i'm working on a project the scenario : teacher model can upload >courses , >then if the teacher has not a profile the institute(model) which >working at >will upload the courses does this is write way i have tried in the >course > model? When yo

Re: Django Tutorial

2020-03-19 Thread Ryan Nowakowski
Please post your entire urls.py On March 19, 2020 1:18:40 AM CDT, Eddie Nash wrote: >I am going through the tutorial yet when I check to see if it is >working, I >get this error code. Please help me fix this! > > >Exception in thread django-main-thread: >Traceback (most recent call last): > Fil

Re: HTML code not being read

2020-03-30 Thread Ryan Nowakowski
Your view context uses 'comment'(singular), while your template uses 'comments'(plural).  I'd chnage your view context to match the template. On 3/30/20 9:51 AM, Jeff Waters wrote: Hi Thanks for getting back to me. This is from my views.py: @login_required def add_comment(request, image_id):

Re: HTML code not being read

2020-03-30 Thread Ryan Nowakowski
Here is the change I suggest: https://gist.github.com/tubaman/bf49949f8a9369ad3db1f56d5ce7dbc0/revisions On 3/30/20 1:03 PM, Jeff Waters wrote: @login_required def add_comment(request, image_id): new_comment = None template_name = 'add_comment.html' image = get_object_or_404(Picture

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Ryan Nowakowski
Based on the rest of your template from the github link, looks like: {% url 'nowandthen:add_comment' image.id %} ...should instead be: {% url 'nowandthen:add_comment' p.image.id %} On 3/31/20 7:08 AM, Jeff Waters wrote: I am putting together a website which has a photo gallery where users can

Re: Question regarding Interactive Python shell response and django

2020-04-26 Thread Ryan Nowakowski
On Sun, Apr 26, 2020 at 05:43:33AM -0700, Michael Karikari wrote: > So I find myself in a pickle. > I'm using an external python API with Django, and as part of that > interaction, it asks for an input from the Django python shell window. What > I am trying to figure out is how can I get form in

Re: How to handle non-uploaded dynamic images ?

2020-05-12 Thread Ryan Nowakowski
On Fri, May 08, 2020 at 06:47:22PM -0700, Dorian LE NET wrote: > Let's say I have a django app where users can display images by choosing > among infinite parameters through a form. These images do not exist before > the user generate them as they are built accordingly to its selection of > para

Understanding timezone with queryset day lookups

2020-06-09 Thread Ryan Causey
this is pointing to UTC "today" is the "wrong" way to do it? Is this queryset behavior due to the way timezone aware inputs in forms works? I.E. Naive datetime in form -> made aware in currently active timezone -> converted to UTC and stored in database if I understand

Re: Django app to PWA

2020-07-22 Thread Ryan Nowakowski
On July 21, 2020 3:36:36 PM CDT, Anirudh choudhary wrote: >Hello everyone > >can anyone share me the link how to make your webpage to Progressive >web app > >i have tried > >django-pwa and other package > It's not exactly plug n play but I like the way wq uses Django to create a PWA. https:/

Re: Help me pleace

2020-07-26 Thread Ryan Nowakowski
You probably want to put the sender's email in the reply-to header. That way the from header can be your Django project's from email. On July 22, 2020 11:16:49 AM CDT, Nikola Tesla wrote: >/Hi, I'm trying to get the sender's email in the headers of my email (I > >mean my blog's contact form). Wh

Re: Undefined HTML controls

2020-08-11 Thread Ryan Nowakowski
On Tue, Aug 04, 2020 at 12:20:49PM -0700, Telly George wrote: > File name: new_page.html > Comments: This is the page with the controls where I cannot read the > information typed by the user > > {% extends "encyclopedia/layout.html" %} > > {% block title %} > Encyclopedia > {% endblock %} >

Re: Using Getstream with Django

2020-09-16 Thread Ryan Nowakowski
It looks like getstream.io offers an API and a Python library to access it. I'd follow the documentation here: https://github.com/GetStream/stream-python They also have libraries to access their API from the frontend (JavaScript, react, etc) On September 14, 2020 7:47:01 PM CDT, "'alan_mo...@y

Re: About multiple GET params persistance between requests

2015-08-03 Thread Ryan Nowakowski
On Mon, Aug 03, 2015 at 11:49:09AM -0400, felix wrote: > El 03/08/15 09:42, duriromp...@gmail.com escribió: > >I'm in a point of my app where I've two GET params, *p* and *q* > >(pagination and query search), and I think that the best method to > >remember the params value when you change page

Re: Django admin suitable for external users?

2015-09-24 Thread Ryan Allen
It really depends on the project you're working on. The resistance comes mostly from developers who utilize the admin as an open interface to the database with minimal restrictions. I like to use the admin this way for large projects that are used by many people, building out a custom "staff" p

Having trouble understanding Timezone

2016-01-06 Thread Ryan Causey
when dealing with end users. I take this to mean that in any code I write I should set tzinfo = UTC for all datetime objects I create programmatically and let Django translate them in forms and views to the end user's timezone automatically. Is this correct? Thank you in

Re: Having trouble understanding Timezone

2016-01-07 Thread Ryan Causey
Thank you everyone for your responses. I believe I have a clear understanding of how it all interacts and what I need to do on my end. -Ryan Causey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Deploying Django via wsgi

2016-03-15 Thread Ryan Nowakowski
On Mon, Mar 14, 2016 at 09:01:46PM -0700, parallaxpl...@gmail.com wrote: > Quite new, and trying to deploy first Django site. I keep getting 503 > errors. Here are the particulars, any hints as to what I'm doing wrong > would be much appreciated! All directories and files are group owned and > w

Re: hanging django/postgres idle connections

2016-03-30 Thread Ryan Bagwell
I'm also seeing this in two of our apps. Has anybody figured out a solution? Running Django 1.7.11. On Monday, November 23, 2015 at 4:36:23 PM UTC-5, Jon Sandness wrote: > > I'm seeing this same issue in OS X 10.11.1 - interestingly, the hang only > occurs when I run migrations through Jenkins.

POSSIBLE BUG: using Coalesce() with __in=[]

2016-03-30 Thread Ryan Prater
It seems that using an empty list when using the `__in=` filter prevents an Aggregate Coalesce from working properly. See below: # Test with matched Queryset. Sum will return 50 OrderItem.objects.filter(pk__in=[1]).aggregate(test=Coalesce(Sum('quantity'), Value(0))) >>> {'test': 50} # Test wit

Why doesn't {{ form.field.value }} return cleaned data?

2016-03-30 Thread Ryan Prater
Say I have a TypedMultipleChoiceField and I'm building a custom select multiple widget in my template. If I want to check a box based on an initial value (ie. default checked options), OR check a box based on form data that has been returned (ie. error state), I would do this: HOWEVER, {{for

Re: POSSIBLE BUG: using Coalesce() with __in=[]

2016-03-30 Thread Ryan Prater
Thank you Simon! I'll file a bug and include a link here, including your points. Your source documentation was incredibly helpful. On Wednesday, March 30, 2016 at 12:03:10 PM UTC-5, Simon Charette wrote: > > Hi Ryan, > > I think this should be considered a bug. > > Fro

Re: Objects from webservices

2018-06-09 Thread Ryan Nowakowski
For rest based web services take a look at Django rest framework. On June 6, 2018 2:47:56 AM CDT, gypsymauro wrote: >Hi, > >I feel very good with django and its ORM, and for this reason I >wondering >if it's possible to "attach" a model to a webservice (SOAP or REST) >and writing some code to lo

Re: Chatbot using Django Channels. Persist a python object in a scope?

2018-06-09 Thread Ryan Nowakowski
I've never used pytransitions. Typically persistent state in Django is stored in the model instead of objects in memory. This allows you to easily scale and also recover state if your app process stops. On June 9, 2018 1:01:14 AM CDT, Rithwik Cherian wrote: >Hello all, > >Very excited to discov

Re: django display a row vale

2018-06-26 Thread Ryan Nowakowski
On Tue, Jun 26, 2018 at 04:33:41PM +1100, sum abiut wrote: > Hi, > i need some assistance, i have a table and want to be able to only display > the values of a particular row when ever the particular row is selected. > > please point me to right direction. > I assume you're talking about an HTML

Re: multiple django websites

2018-07-16 Thread Ryan Nowakowski
Yes On July 16, 2018 6:50:37 AM CDT, mottaz hejaze wrote: >hello friends , > >is it possible to host multiple django websites on a single VPS ?? > >i mean real production websites all go live in the same time from the >same >VPS like digitalocean VPS > >thx all > >-- >You received this message b

Re: Connection refused by Unix socket file

2018-07-16 Thread Ryan Nowakowski
I think you've got 2 different uwsgi commands below. One uses the ini file with the Unix socket and the other listens on port 8123. It looks like your nginx config is looking for the Unix socket so make sure you run uwsgi with the ini option so it'll listen on the Unix socket. On July 16, 2018

Re: multiple django websites

2018-07-18 Thread Ryan Nowakowski
the Django documentation for running under Apache: https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/modwsgi/ On Mon, Jul 16, 2018 at 03:18:10PM +0200, mottaz hejaze wrote: > ryan do you have a guide for this .. i found one but its outdated i think > > On Mon, 16 Jul 2018, 14:53 Ryan

Re: How do I make a field optional to enter, in a django ModelForm?

2018-09-12 Thread Ryan Gedwill
There may be a better way, but I’d set ‘required=False’ for the field. Then on the template where it is actually required, hardcode validation logic in either JS or with the template tags, by simply checking if the field is empty and displaying an error if it is empty, and submitting the form if

Re: How to migrate old database into new database using python script

2018-10-11 Thread Ryan Gedwill
Depending on the SQL distribution you're using, there should be a couple tools to do this without python using a CLI command or a basic SQL script. If you need to do it in python, use a basic python library (again, depends on your sql distribution) to connect to your database and execute the SQL c

Re: django admin widget

2018-10-13 Thread Ryan Nowakowski
I've done something similar in the past but I use a separate model for author that has a foreign key back to book. You can limit the number of authors to 3 in the author save method. Then you can use an inline form for author in the admin. That will give you the + functionality you're looking f

Re: I Suck

2018-10-24 Thread Ryan Gedwill
I felt the same as you while learning django, and I already had some professional experience. It is extremely overwhelming to learn something like this on your own. Even people who go to college and get internships don't have to go through it. Pick something you want to make, and break it down in

Re: Network analysis tool

2018-10-26 Thread Ryan Nowakowski
It depends on what you want to do. If you want to use websockets then channels is a great choice. If you want to have long running background processes then channels is good for most things. Alternatively, Celery is a bit more mature and full-featured. On October 25, 2018 3:21:58 AM CDT, daniel

Re: Trigger actions independently of url request

2018-10-26 Thread Ryan Nowakowski
Celery is probably what you want. It allows you to run scheduled tasks. Alternatively, you can create a custom management command and run that periodically some other way: Cron, etc. On October 22, 2018 3:11:09 PM CDT, Charley Paulus wrote: >Hi Andrew, > >Thank you for your answer. > >To bette

Use Email to Login With Django Auth

2018-11-01 Thread Ryan Shepard
How could i go about allowing people to also use their email to sign into Django instead of a username? I have done research my self and tried creating my own backend for it. But it doesn't work. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Use Email to Login With Django Auth

2018-11-01 Thread Ryan Shepard
That helps a bunch, thank you! On Thursday, November 1, 2018 at 12:44:20 PM UTC-5, Andrew Pinkham wrote: > > You may be interested in django-improved-user, as it provides an > email-based User model. > > https://pypi.org/project/django-improved-user/ > > Full disclosure: I am one of the origina

Re: Setting up admin in visual studio

2018-11-08 Thread Ryan Gedwill
You need to install django, then from the command line you can create the admin page, but the admin.py file will appear automatically when you create a django project Sent from my iPhone > On Nov 8, 2018, at 2:47 PM, Saeed Pooladzadeh wrote: > > Thanks for your help. > But this tutorial is no

Re: SyntaxError: keyword argument repeated

2018-11-08 Thread Ryan Gedwill
You can only pass in a keyword argument once, you pass in related_name twice in one of your properties Sent from my iPhone > On Nov 8, 2018, at 12:02 PM, Vishvajit Pathak wrote: > > in the code > >> parent = ForeignKey( >> 'customers.Zone', >> on_delete=models.CASCADE, relate

Re: copy schema when user register for login.

2018-11-08 Thread Ryan Gedwill
This is an interesting problem. So basically you need to migrate the entire schema upon the creation of a new user? Can the schema change for a new user, or will it always be the exact same? >From what I understand, you will need to ask the user for credentials for >database connection, and t

Re: Which free template you use to a ERP frontend?

2018-11-11 Thread Ryan Nowakowski
I like pinax bootstrap or CoreUI. On November 8, 2018 6:35:25 AM CST, Fellipe Henrique wrote: >Hi guys, > >A company here need to provide some info for users.. they have a Delphi >ERP, so we need to create a web frontend for some of infos... > >Which free template you use? Why? > >Thanks! > >T.·.

Re: Django jobs

2018-11-14 Thread Ryan Gedwill
I live in the SF Bay Area and there are no shortage of jobs in Django. It is true there are also plenty of jobs in Node, but you can’t compare a framework to a backend language. I see far more python jobs than node jobs. 2 things to keep in mind though (for reference I’m a python/Django dev but

Re: Django jobs

2018-11-14 Thread Ryan Gedwill
uro Fernandez wrote: > > Thanks :) > >> On Wednesday, November 14, 2018 at 9:41:35 PM UTC-5, Ryan Gedwill wrote: >> I live in the SF Bay Area and there are no shortage of jobs in Django. It is >> true there are also plenty of jobs in Node, but you can’t compare a >>

Re: Django jobs

2018-11-14 Thread Ryan Gedwill
se pages. > > > >> Like, say for perl, there's Larry's books, which provide a solid foundation >> for best practices. >> >> Sincerely yours, >> >> Joel G Mathew >> >> >> >> On Thu, 15 Nov 2018 at 08:49, Ryan G

Re: I can't start django

2018-11-17 Thread Ryan Gedwill
Are you using a virtual environment? What version of python are you using? Try typing in the command line: python Then when the shell opens up, put import django Press enter. What does it say? Sent from my iPhone > On Nov 17, 2018, at 11:20 AM, epic christ wrote: > > what do you mean? > >

Re: Fascinating Problem

2018-11-18 Thread Ryan Nowakowski
Posting the view code might be helpful for folks to help you debug. On November 16, 2018 2:52:12 PM CST, Matthew Pava wrote: >I have come across an interesting issue with my error handling. >Whenever I go to a URL that throws an exception (I have one for >testing) as one of the ADMINS when DEBUG

Re: iss api

2018-11-18 Thread Ryan Nowakowski
The easiest thing is probably to: 1. Render the latitude and longitude in a template as JavaScript variables in a script tag. 2. Use Google maps to show those coordinates via JavaScript. On November 18, 2018 5:38:48 AM CST, gokul s wrote: >hi i want create model that get the longitude and lattit

Re: Strange intermittent UUID bug

2018-11-21 Thread Ryan Nowakowski
It is suspicious that value passed in to get_db_prep_value is failing isinstance since it looks like value is already a UUID. Are you sure the UUID type of value is uuid.UUID? On November 20, 2018 11:44:52 AM CST, Jerry Vinokurov wrote: >Hi all, > >We have a project that uses UUIDs as a primar

Re: Is Django and DjangoRestAPI's the correct framework for my project?

2018-11-22 Thread Ryan Nowakowski
Django can definitely do what you want. It just sounds like you won't be using very many of it's built-in features. - Ryan On Thu, Nov 22, 2018 at 07:40:55AM -0800, Andy Gardner wrote: > I am new to Django, Python and Rest API's and have been learning it over > the last

Re: email

2018-11-22 Thread Ryan Nowakowski
On Thu, Nov 22, 2018 at 02:59:02PM +0530, Tushar Nadkar wrote: > i have email id of multiple user , so how can i send mail after 3 days when > he click a button .or checkout button in django I record the timestamp of the button click in a model then I run cron or celery periodically to query the m

Re: What is meant by blocking request in django?

2018-11-30 Thread Ryan Nowakowski
This is how I think about blocking in the context of Django. Anything that takes time and is not directly related to returning an http response should be done in the background (via celery or whatever). Your email example is a good one. The email doesn't need to be sent before the http response

Re: Dango Im,voip and video calls

2018-12-05 Thread Ryan Nowakowski
Wow, that's quite an advanced project for a beginner! For instant messaging I'd look at websockets and Django channels. For VoIP and video, take a look at webrtc. On December 5, 2018 2:18:00 AM CST, Henry U wrote: >Hi >I'm new to Django and programming in general. As a learner, I am >working on

Re: Problem

2018-12-05 Thread Ryan Nowakowski
Perhaps go back through the tutorial carefully double checking each step. Did you add polls to settings.py? Is your polls/urls.py file named correctly? On December 5, 2018 6:30:50 AM CST, David Figueroa wrote: > >David Figueroa *por * >

Re: Integrating ml in django

2018-12-05 Thread Ryan Nowakowski
You can use any Python library with Django so you can use numpy and tensorflow. On December 4, 2018 11:55:08 AM CST, shiva kumar wrote: >I have one doubt regarding django. That, can we use ml concepts and >packages in django as our backend technology >That is by using ml concepts like numpy, ten

Re: django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call sett

2018-12-05 Thread Ryan Nowakowski
I'm not quite sure what you're trying to do. Are you trying to run views.py? On December 5, 2018 6:21:06 AM CST, Tushar Khairnar wrote: >C:\Python\python.exe "D:/Python/django reset >framework/secondtestdjrstapi/users/views.py" >Traceback (most recent call last): > File "D:/Python/django reset

Re: Django UpdateView and Createview

2018-12-08 Thread Ryan Nowakowski
Take a look at https://docs.djangoproject.com/en/2.1/topics/class-based-views/generic-editing/ On December 7, 2018 7:09:25 AM CST, Rupam Hazra wrote: >Hi, > >I have working in a TaskManagement Sytem where i have *project *module >and *technology >*module. > >class ProjectMaster(models.Model): >

Re: Django UpdateView and Createview

2018-12-10 Thread Ryan Nowakowski
Kumar > > wrote: > > > >> On Sunday, December 9, 2018 at 6:21:55 AM UTC+5:30, Ryan Nowakowski wrote: > >> > Take a look at > >> https://docs.djangoproject.com/en/2.1/topics/class-based-views/generic-editing/ > >> > > >> > &

Re: Django LMS

2018-12-11 Thread Ryan Nowakowski
Take a look at OpenEDX. It seems like they have a pretty complete e-learning system including some scorm support. https://github.com/edx/edx-platform On December 11, 2018 12:09:32 AM CST, Suresh wrote: >How can i make scorm compliant in my lms site using python with django? > >-- >You receive

Re: pyhton manage.py migrate not working

2018-12-14 Thread Ryan Nowakowski
It looks like perhaps you specified an integer for cache durations and it's supposed to be a dictionary instead. On December 13, 2018 5:40:08 AM CST, Gilles Zoratti wrote: > > >Dear every one, >i'm new in the Django cms environment, and I need your help ! ( please >:) ) > >When I tried to "inst

Re: html canges not update

2018-12-19 Thread Ryan Nowakowski
What directory are your templates in? On December 18, 2018 11:06:03 PM CST, fofazu...@gmail.com wrote: >hi >i i am a new in django and i have a practice project, changes in >templates >is not updates > >-- >You received this message because you are subscribed to the Google >Groups "Django user

Re: Multiple file uploading in django admin

2018-12-19 Thread Ryan Nowakowski
The answer[1] to that stack overflow question looks correct to me. To summarize, the "files" field on your model only stores a single file. Instead of files field, you'll need to create a new model that's foreign keyed back to your File model to store an arbitrary number of multiple files. [1]

Re: django admin site change_related_template_url problem

2018-12-30 Thread Ryan Nowakowski
You're better off not using the HTML rewriting features of your reverse proxy. Instead configure Django to use the reverse proxied url prefix for all it's URLs. On December 29, 2018 9:03:39 AM CST, Zhe Li wrote: >Hi, > >I am having issues with django installed on a server reversed proxied >to

Re: LOCK AND UNLOCK PAGES TO SPECIFIC USERS

2020-10-05 Thread Ryan Nowakowski
On Tue, Sep 22, 2020 at 06:55:27PM -0700, Lightning Bit wrote: > How can one lock a page "unless" the user clicks on a button on a previous > page? So, for instance, the user will not be able to type in that url and > get to the page unless they have clicked the button on the previous page at >

Re: cinema booking

2020-10-08 Thread Ryan Nowakowski
Perhaps something like this? seat = Seat.objects.first() seat.seat_status == 'BOOKED' On October 8, 2020 12:46:14 PM CDT, feysel abdu wrote: >am sorry for not making it clear, i want to know how to know whether >the is >booked or not my exiting model is this > > >class Movies(models.Model):

Re: Pasting images versus uploading

2020-10-08 Thread Ryan Nowakowski
Maybe you could swap out the default ImageField widget for TinyMCE-lite HTMLField? Security-wise you probably want to sanitize the input from HTMLField in Django to make sure only img tags are allowed. On October 7, 2020 7:02:16 PM CDT, Mike Dewhirst wrote: >Users need to include an image of a

Re: Pasting images versus uploading

2020-10-14 Thread Ryan Nowakowski
On Fri, Oct 09, 2020 at 06:22:10PM +1100, Mike Dewhirst wrote: > On 9/10/2020 11:55 am, Ryan Nowakowski wrote: > > Maybe you could swap out the default ImageField widget for > > TinyMCE-lite HTMLField? Security-wise you probably want to sanitize > > the input from HTMLField i

Re: Periodic Execution of django functions or tasks

2020-10-19 Thread Ryan Nowakowski
On Mon, Oct 19, 2020 at 04:53:35PM +0300, MUGOYA DIHFAHSIH wrote: > Hello fellow django developers, i am working on a web app in which reports > are archived in the database at the end of every month automatically, i > have searched on internet and many folks are suggesting celery which i have > tr

Re: Template styles.

2020-10-19 Thread Ryan Nowakowski
On Sat, Oct 17, 2020 at 01:47:24AM -0700, Mohemed Misfar wrote: > Django has amazing model forms and django froms. In case if i use them, I > am unable to get the bootstrap and css styles. I can use raw html forms. > but, model forms and django forms are validated itself. in this case how > can

Re: Patreon and Django-AllAuth Integration

2020-10-27 Thread Ryan Nowakowski
On Mon, Oct 26, 2020 at 12:16:03PM -0700, Andrew Stringfield wrote: > Hello all, > > I am trying to use Patreon's API Version 2 with Django 3.1. I > read: https://docs.patreon.com/#third-party-libraries and found that > Patreon supported the django-allauth library. I installed the library

Re: Patreon and Django-AllAuth Integration

2020-10-28 Thread Ryan Nowakowski
2/errors?error=invalid_request&error_description=Mismatching+redirect+URI.&state=z5ycBAl8AI5V >> and in my HTML Body I get: >> {"error":"invalid_request","error_description":"Mismatching redirect >> URI.","state":"z5ycBAl8A

Re: Patreon and Django-AllAuth Integration

2020-10-28 Thread Ryan Nowakowski
d, Oct 28, 2020 at 10:29:57AM -0700, Andrew Stringfield wrote: > I would not be shocked. > > On Wednesday, October 28, 2020 at 9:55:15 AM UTC-4 Ryan Nowakowski wrote: > > > The patreon error you're seeing might be a different redirect URL than the > > login redirect U

Re: Patreon and Django-AllAuth Integration

2020-10-28 Thread Ryan Nowakowski
Wed, Oct 28, 2020 at 06:16:43PM -0500, Ryan Nowakowski wrote: > Typically oauth requires a callback URL[1] configured at the > provider(Patreon in this case). Maybe double check that? Perhaps that's > what Patreon is referring to("redirect URL") in the error below? >

Re: RuntimeError: Model class polls38.polls.models.Question doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

2020-12-03 Thread Ryan Gedwill
you at least need to add 'polls' to your INSTALLED_APPS in settings.py. You should also remove the line you put in manage.py - that file should rarely be touched at all. This is not a system path problem On Thu, Dec 3, 2020 at 12:38 PM Ennio Santos wrote: > I developed some small web app usin

Re: RuntimeError: Model class polls38.polls.models.Question doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

2020-12-03 Thread Ryan Gedwill
you may also need to change polls/apps.py to have a config class On Thu, Dec 3, 2020 at 5:31 PM Ryan Gedwill wrote: > you at least need to add 'polls' to your INSTALLED_APPS in settings.py. > You should also remove the line you put in manage.py - that file should > rarel

Re: How to Get Video to Play

2020-12-05 Thread Ryan Nowakowski
tl;dr check the encoding of your video Disclosure: I'm no video expert. I had a similar issue years ago. Back when the transition from flash video to HTML5 was occurring. Your issue could have something to do with how the video is encoded. One reason that services like YouTube and Vimeo are use

Re: is a custom model even possible

2020-12-07 Thread Ryan Nowakowski
quot;unique methods per model instance" isn't the best way to solve your problem. - Ryan N -- 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 dj

Re: Versioning files or documents in a list

2020-12-07 Thread Ryan Nowakowski
nce with is django-revisions[2] but that was a while ago and it seems unmaintained. It looks like django-reversion[3] is pretty well maintained today. Hope this helps! Ryan N [1] https://djangopackages.org/grids/g/versioning/ [2] https://github.com/debrouwere/django-revisions [3] https://gith

Re: SonarQube and Python/Django Code Analysis

2021-01-23 Thread Ryan Nowakowski
We use SonarCube for Python although not Django. Our QA team seems to like it. On January 21, 2021 6:46:32 AM CST, Sachin Kumar wrote: >Hi Experts, > >I am trying to do code analysis through Sonarqube. Please if anything >better that SonarQube to Analysis Python/Django Code. Please advise. >

Re: Classifieds page loading is to slow

2021-01-23 Thread Ryan Nowakowski
I recommend profiling the app to figure out exactly what part is slowing you down before you do any optimization. On January 14, 2021 9:17:46 PM CST, Salima Begum wrote: >Hi all, > >We are building a Web application, We have a classifieds page that is >loading too slow. How to fix this issue. h

Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-23 Thread Ryan Nowakowski
A couple of places to look: 1. Different domains on the new boxes? You'll need to add the new callback urls on the Microsoft side. 2. Different version of Python on the new boxes? On January 22, 2021 2:51:30 PM CST, Larry Martell wrote: >I have an app deployed in many places and it uses Django

Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-23 Thread Ryan Nowakowski
On Sat, Jan 23, 2021 at 11:05:14AM -0800, Larry Martell wrote: > On Sat, Jan 23, 2021 at 8:14 AM Ryan Nowakowski wrote: > > > > A couple of places to look: > > > > 1. Different domains on the new boxes? You'll need to add the new callback > > urls on the Mi

Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-30 Thread Ryan Nowakowski
On Fri, Jan 29, 2021 at 08:58:48AM -0800, Larry Martell wrote: > We finally found the issue - I said we had the same version of all the > python packages but we did not - the new system had 2.0.1 version of > pyjwt. When we downgraded to 1.7.1 it started working again. The > requirements file for D

Re: How would this be done within the Django framework?

2021-01-30 Thread Ryan Nowakowski
On Sat, Jan 30, 2021 at 08:49:09AM -0800, dazzle.razzle.em wrote: > I am new to Django and to web development, and am trying to get my bearings. > > Suppose that I provide a web page that asks the user for an airport, a > start date, an end date, a number of days. The server is supposed to go to

Re: Show FK as input instead of drop down in admin

2021-01-30 Thread Ryan Nowakowski
On Wed, Jan 27, 2021 at 05:33:10AM -0800, Kevin Olbrich wrote: > Is it possible to disable fetching of related models for admin pages? > I have a field that links to a table containing more than 1M rows which > django tries to fetch and build the drop down. For my purpose, it is > sufficient if i

Re: How can I use my Company SSO(Single sign On ) for login into my django application ??

2021-01-30 Thread Ryan Nowakowski
On January 27, 2021 8:14:55 AM CST, Larry Martell wrote: >On Wed, Jan 27, 2021 at 6:02 AM Kumar Gaurav > wrote: >> >> Hii , >> >> My users come to my django application after authenticated from >company SSO. >> Now , I don't want to create my own authentication model. I just want >to login the

Re: Django site as SOAP endpoint

2021-01-31 Thread Ryan Nowakowski
On January 31, 2021 1:44:46 AM CST, Fenrir Sivar wrote: >I’m working on a project where one of the remote parties requires us to >serve a SOAP api. I have plenty experience with DRF, but only found >soap >client examples (using The ’zeep’ module: zeep==soap in Dutch) which I >use >to call the

Re: about django documentation

2021-01-31 Thread Ryan Nowakowski
I recommend following the tutorial all the way through. Getting that tutorial running in your own computer will answer 95% of a beginner's questions. https://docs.djangoproject.com/en/3.1/intro/tutorial01/ On January 18, 2021 9:27:56 PM CST, a a wrote: >i have end the django introduction but i

Re: How to Handle Media on Production

2021-02-21 Thread Ryan Nowakowski
On February 21, 2021 4:42:21 AM CST, ramadhan ngallen wrote: >Hello Team. I have created an app that integrated with an Accounting >system (sage evolution). Everything works fine on debug mode. But I >face a challenge on media files on production. Django app deployed on >appache with windows s

<    1   2   3   4   5   6   >