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: django and thrift

2014-04-10 Thread Ryan R
This is an old thread, but responding in case anyone interested in django+thrift comes across this. Implementing Django/thrift server is not difficult to do and it has advantags over JSON/webservice, namely less overhead and simplified serialization/deserialization of strongly typed complex

How to find list of blocking issues for django releases?

2014-05-23 Thread Ryan Osborn
How can I go about finding a list of the issues that are blocking a djago release? -- 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 1.7 - What are you most excited about?

2014-07-29 Thread Ryan Blunden
Hi everyone, I'm giving a lightening talk at the San Francisco Django meetup tomorrow night about some of the awesome new features in Django 1.7. I wanted to highlight not just what *I think* are the best new features, but what members of the community are most excited about. Would be great

Re: Django 1.7 - What are you most excited about?

2014-07-30 Thread Ryan Blunden
. Speaking of which, which is your favorite new feature? On Tuesday, July 29, 2014 at 7:08 PM, carlos wrote: > Hi maybe you need read the release note Django 1.7 about the new features > https://docs.djangoproject.com/en/dev/releases/1.7/ > > Cheers :) > > > On Tue, Jul 29,

Re: Django 1.7 - What are you most excited about?

2014-07-30 Thread Ryan Blunden
at 9:41 AM, Ryan Blunden wrote: > Hi Carlos, > > I’ve read all the release notes and already have my short list of what I > think the best features are. But this will be heavily skewed towards the > types of Django apps I create and how I use Django. > > I wanted to

Re: Access to custom fields in view?

2014-07-30 Thread Ryan Blunden
I would use the @property decorator. class template(models.Model): ... @property def responsive(self): try: responsive = templates_propiedad.objects.get(propiedad="features", valor="responsive", plantilla=self) salida = "1" except:

Re: Djamin, a new and clean styles for Django admin.

2014-08-01 Thread Ryan Blunden
This looks pretty clean. I’ll give it a try on a new Django app I’m developing. Have you tested it on Django 1.7? On Friday, August 1, 2014 at 11:13 AM, Herson wrote: > Hey guys, in the last days, i push my new project called Djamin[0], a new and > clean styles for django admin. > > I

Bug in update_or_create?

2014-10-06 Thread Ryan Hiebert
expected it to know that it's coming from the spam instance, and thus have the foreign key set appropriately. Am I misunderstanding? Ryan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

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 >

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

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,

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. > > From

Re: Help with moving a development project to production

2016-05-02 Thread Ryan Nowakowski
On Mon, May 02, 2016 at 03:07:57PM -0700, Bruce Whealton wrote: > I have been developing a django project and app on a Ubuntu > system. My production system is Centos 6 based ( I think, not Centos 7). > First off, what should I commit to the repo? I setup a virtualenv using >

Re: add models class and fields through python script

2016-07-16 Thread Ryan Castner
I think the best thing you can do in this situation is design a system where the system administrator (non-technical user I am assuming from your description) fills out a form for an 'Event' model. The 'Event' is posted on the calendar or what have you and student's can register to participate

Re: Disabling migrations when running tests

2016-07-16 Thread Ryan Castner
Could you explain what you mean by running tests? Migrations are executed when you run `./manage.py migrate`, if you are running `./manage.py test ...` it shouldn't be running your migrations, probably just gives a log warning that you have unapplied migrations. Here are the django docs on

Re: I am not sure what “: command not found” means when I run virtualenvwrapper mkvirtualenv command

2016-07-16 Thread Ryan Castner
command not found means that the command you are running in your terminal (the first word entered before a space delimiter) was not found in your PATH variable. Your PATH keeps track of all the locations and directories where when you call 'virtualenvwrapper' it looks under all of those for a

Re: Custom Models

2016-07-16 Thread Ryan Castner
Well first off, while it might be a best practice to make a manager for this, you in no way have to. You can build your website and have it run swimmingly well without doing this abstraction. The whole idea of a Manager is a class that provides some methods to access a model. Look at the

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

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: Need help with a school project

2017-01-16 Thread Ryan Nowakowski
it and get better. http://www.catb.org/~esr/faqs/smart-questions.html#homework - Ryan -- 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+uns

Validators and django.contrib.postgres.fields JSONField

2016-08-21 Thread Ryan Causey
for migration purposes, but I tried defining it and it didn't seem to make a difference. Any help is appreciated. Thanks, -Ryan Causey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Validators and django.contrib.postgres.fields JSONField

2016-08-28 Thread Ryan Causey
ted rather than entering the __call__() method of the class. I can't see a reason for this to happen, so what am I doing wrong here? Thanks, -Ryan Causey On Sunday, August 21, 2016 at 9:32:50 PM UTC-7, Ryan Causey wrote: > > Hello, > > I've stumbled upon an issue when using JSONField fr

Re: Validators and django.contrib.postgres.fields JSONField

2016-08-28 Thread Ryan Causey
to go. I based this off things like the Regex validator in django.core.validators found here: https://docs.djangoproject.com/en/1.10/_modules/django/core/validators/#RegexValidator. Perhaps this wasn't the right approach? Thanks for your help! -Ryan Causey On Sunday, August 28, 2016 at 3:46:31

Re: Best practice for implementing a dynamic "other" field in a group of radio buttons?

2016-12-03 Thread Ryan Nowakowski
raise ValidationError({'custom_gender': "Please enter your other gender"}) Note that you could implement the clean method on the form instead of the model. However if this is a hard and fast rule everywhere including in the django admin, I'd implement it in the model.

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

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

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

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

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

Re: Creating models from json url feed

2018-05-12 Thread Ryan Nowakowski
On May 10, 2018 7:40:47 AM CDT, Matt Snelgar wrote: > > >I am making a django app to browse available products at different >markets. >I am getting data for my models from a JSON url feed, > >I am not sure on the best approach to turn this data into models as the > >feed

Re: Creating models from json url feed

2018-05-12 Thread Ryan Nowakowski
gt; On Sun, May 13, 2018 at 1:51 AM, Ryan Nowakowski <tuba...@fattuba.com> > wrote: > > > > > > > On May 10, 2018 7:40:47 AM CDT, Matt Snelgar <snelg...@gmail.com> wrote: > > > > > > > > >I am making a django app to browse available pro

Re: Django 2.0 MongoDB

2018-05-17 Thread Ryan Nowakowski
Django is typically used with a SQL database. There's a fork of Django called non-rel that works with mongo but it's not actively developed any longer. Instead you can access mongo from a Django view via the standard mongo python library but you won't be able to use Django's models or admin.

Re: How to retrieve existing data of mongodb database in Django

2018-05-17 Thread Ryan Nowakowski
It looks like you're reusing the variable connone. Could that be the issue? On May 15, 2018 10:38:06 AM CDT, gomahe...@gmail.com wrote: >I am new to Django started developing the application but got a >problem in >retrieving the data from already existing data which looks like this >below. >

Re: Error Djongo MongoDB

2018-05-17 Thread Ryan Nowakowski
Is your mongo host (IP) and port set correctly? On May 17, 2018 4:09:17 PM CDT, Kadir Guloglu wrote: >Hi > >I am try to connect MongoDB and I am getting an exception > >*Thanks for help* > >*CMD* > >*c:\Proje\otomabakv2\otomabak\otomabak>python manage.py makemigrations*

Re: Django channel 2 - Provide seperate feeds to each users every 5 second

2018-05-20 Thread Ryan Nowakowski
On Fri, May 18, 2018 at 10:28:00PM -0700, sahadev sahu wrote: > Hello, > > I am implementing a websocket application for live data feed updates to > each client according to their watchlist in every 5 second. Here I am > explaining my requirement: > >1. Once user register with my

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

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

Re: Django channels with python background tasks

2018-05-26 Thread Ryan Nowakowski
In addition to websockets, channels can be used to run background tasks that could take a long time for example a telnet connection. You can Google Django channels background tasks. An alternative to channels for background tasks is celery. On May 26, 2018 5:03:51 AM CDT, Andrew Godwin

Re: Django channels with python background tasks

2018-05-26 Thread Ryan Nowakowski
Another idea: create a Django management command that does the telnet stuff and just run that periodically via Cron. You can always move to channels or celery later. On May 26, 2018 9:33:16 AM CDT, Ryan Nowakowski <tuba...@fattuba.com> wrote: >In addition to websockets, channels ca

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

Re: Initializing DateTimeField in django forms.

2018-02-20 Thread Ryan Nowakowski
You could make the date field "disabled": https://docs.djangoproject.com/en/2.0/ref/forms/fields/#disabled On Mon, Feb 19, 2018 at 08:37:40AM -0800, prince gosavi wrote: > That did the job.But I would like to get rid of the 'Field' type view that > surrounds the date. As I only want to display

Re: returning a zip file for download

2018-02-20 Thread Ryan Nowakowski
To set the download filename, you'll need to set the response Content-Disposition header[1] in your view: response['Content-Disposition'] = 'attachment; filename="somefilename.zip"' [1] https://docs.djangoproject.com/en/2.0/howto/outputting-pdf/#write-your-view On Tue, Feb 20, 2018 at

Re: multiple django websites

2018-07-18 Thread Ryan Nowakowski
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 Nowakowsk

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

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: Django and graphs

2018-03-26 Thread Ryan Manzer
Personally, I have had a good deal of success building data APIs using Django Rest Framework and then consuming the data with the D3.js javascript library. However, I can understand that may be a bit more complicated than you wish to go. On Thursday, March 22, 2018 at 12:36:22 PM UTC-7,

Re: Industrial Analytics

2018-02-25 Thread Ryan Nowakowski
I've written an email marketing analytics app in Django that I believe will scale. I haven't released anywhere yet though. You might search the web for "write heavy Django" since most analytics is write heavy. On February 25, 2018 9:12:24 AM CST, Raj wrote: >Dear

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

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

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

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"

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,

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

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

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,

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

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

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! >

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
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
> > > >> 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 Gedwill > <m

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

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

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

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

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: 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

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

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,

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: 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

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 few weeks with

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

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: 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: 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

Re: Django UpdateView and Createview

2018-12-10 Thread Ryan Nowakowski
t; 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/ > >> > > >> > > >&g

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: 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

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: Using progress bars while performing long computations and loading another page

2019-02-23 Thread Ryan Nowakowski
Whenever I've used celery in the past, any logging in the celery task appears in the terminal running the celery worker. On February 23, 2019 6:29:39 AM CST, Mohamed Maher wrote: >Hello, > >I have a scenario now where I send a GET request from a form in a web >page >to another page where I do

Re: Image Upload in admin panel

2019-02-20 Thread Ryan Nowakowski
Check out ImageField: https://docs.djangoproject.com/en/2.1/ref/models/fields/#imagefield On February 14, 2019 12:37:04 PM CST, Surajeet Das wrote: >How do I upload images from admin panel and retrieve from a html page ? > >-- >You received this message because you are subscribed to the Google

Re: Editing models in the view: Design advice needed

2019-02-23 Thread Ryan Nowakowski
You'll need to use JavaScript and XHR to send data to the server without refreshing the page. What makes you think the POST would be janky and insecure? On February 21, 2019 7:27:17 PM CST, Denver Sale wrote: >Hello, > >I'm somewhat new to Django/front end web development so I'm wondering

Re: Django's best way to upload data into a postgresql database

2019-03-17 Thread Ryan Nowakowski
Send like a pretty standard optimization scenario. I'd recommend: 1. Find the bottleneck. Here if your suspect it's pandas dataframe vs lists, run a timing analysis using each. 2. Remove the bottleneck On March 17, 2019 6:52:23 PM CDT, "Guillermo Yáñez Feliú" wrote: > > >Hello, > > >I’m

Re: How can I make users login to my site with facebook/twitter/google?

2019-03-07 Thread Ryan Nowakowski
For your https problem I recommend a service like localtunnel or ngrok. On March 5, 2019 11:19:16 AM CST, Sandip Nath wrote: >i want users to my site to log log in with facebook, twitter, google. >While >the development server supports only http fb/twitter/google expects >https. >What to do? >

Re: migrating from 2.7 to 3.x on Ubuntu

2019-03-07 Thread Ryan Nowakowski
Seems doable. I would leave nginx out of it and just run gunicorn Python 3 with Apache. Also I would do the release upgrade before. On March 4, 2019 10:40:21 PM CST, Mike Dewhirst wrote: >On the same host, is it viable to switch my Django projects away from >vhosts under Apache2/mod_wsgi/py2.7

Re: Django csv file

2019-03-12 Thread Ryan Nowakowski
If I were you, I'd work through the Django tutorial first. Then ask specific questions if you have any. On March 12, 2019 5:32:08 AM CDT, Cigi Sebastine wrote: >Hi all > >I am trying to insert data from csv file to mongodb4 using python3.7 >(Bulk >data insertion 47lakhs records) >i need to

Re: Looking for a Django co-founder

2019-03-15 Thread Ryan Gedwill
I would be interested to chat on the phone about your idea, if i'm optimistic about the success of the project I would be able to commit to it. On Thu, Mar 14, 2019 at 8:40 PM Zack Amaral wrote: > Django users, > > I'm looking for a Django developer that can commit to working 10 hours a > week

Re: Atomic IntegerField increment based on another model instance

2019-06-02 Thread Ryan Causey
"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: > > Assume t

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.

UniqueConstraint raises uncaught IntegrityError in Admin

2019-04-09 Thread Ryan Jarvis
Hey there, I'm trying out the new UniqueConstraint functionality in Django 2.2 and seem to be misunderstanding something. When adding a Constraint to the model I am getting an uncaught IntegrityError in the admin. I've got the following sample code: *models.py* class Seminar(models.Model):

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

Reusable apps that support being nested wihin other apps

2019-08-11 Thread Ryan Causey
Is it possible in Django to reverse URLs within a reusable app such that the reversing will still work if the app is nested with another? It's essentially the same question as this stack overflow question

Re: Hi, I'm new django. I want to learn Django. What's the first step.

2019-09-01 Thread Ryan Gedwill
My favorite is django-book. I used it as a reference for 2 years after I first started using Django. Ryan Gedwill > On Sep 1, 2019, at 7:09 AM, WebTrainingRoom Online > wrote: > > Hi! > you may find this useful > https://www.webtrainingroom.com/python/django-pro

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Ryan Gedwill
Hi, I am interested in the position. I am available to work in US, but would need to relocate as I am located in California. Ryan Gedwill > On Sep 17, 2019, at 1:21 PM, Raju N Somanna wrote: > > Hi All > > I've an immediate need for Backend Developers (Python/Django ORM - N

Re: .objects.all() issue

2020-02-22 Thread Ryan Gedwill
Can we see the code for the model? Are you sure the column name is author_id, and have you ensured it’s actually been migrated and exists in your database? Ryan Gedwill > On Feb 22, 2020, at 7:14 AM, Kolluri Mounish wrote: > >  > I have imported Post. But still i'm facin

Re: Full Stack Developer (Python/Django) position requirement for US GC/Citizen/Can Citizen

2020-01-03 Thread Ryan Gedwill
I am interested in this position, please see resume attached. On Fri, Jan 3, 2020 at 2:16 PM Shirley Nelson wrote: > I am interested in this position. > > On Fri, Jan 3, 2020, 12:35 PM Yash Garg wrote: > >> For a large multi billion dollar Publishing house in New York, client >> needs a Full

<    1   2   3   4   5   6   >