Re: problem while passing a list of string to javascript in template

2012-12-29 Thread Ryan Blunden
Django presumes all template variables are "unsafe" by default to prevent XSS attacks which is why it's encoded the quotes. Read up on filters and auto-escaping and you'll be able to figure out the rest. Cheers, Ryan On 29/12/2012, at 7:57 AM, "Everest K.C." wrot

Re: Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

2012-12-29 Thread Ryan Blunden
Hey Jeff, There sure is. Just specify a "TEST_NAME" key in the database configuration dictionary and you're good to go. https://docs.djangoproject.com/en/dev/topics/testing/overview/#the-test-database Cheers, Ryan On 29/12/2012, at 7:27 AM, Jeff wrote: > When I run the

Re: Question about URL namespaces

2012-12-29 Thread Ryan Blunden
nswer your question about what "application" means in this context, it means a Django application (e.g. django.contrib.admin). Cheers, Ryan On 29/12/2012, at 4:44 AM, "Dae James" wrote: > When I was reading django's URL document, I come across "URL namespaces&quo

Re: Bug in inlines.js

2012-12-29 Thread Ryan Blunden
You should post this to https://code.djangoproject.com/newticket Cheers, Ryan On 29/12/2012, at 12:50 AM, Ruud van der Weide wrote: > I just noticed a small bug in inlines.js. In the part where the "addButton" > is included, the following check is used: > if ($this.att

Re: Admin page not found error

2012-12-29 Thread Ryan Blunden
y the database path as an absolute path. It's relative to the Django project root folder so just "sqlite.db" would be fine. Happy coding. Cheers, Ryan On 29/12/2012, at 12:14 AM, Shahjalal Hossain wrote: > > > On Friday, December 28, 2012 9:29:50 AM U

Re: Access denied for user

2012-12-29 Thread Ryan Blunden
You either need to create an account for this user with access to the database or check the username and password provided. How are you administering the DB? PHPMyAdmin? On 27/12/2012, at 6:22 AM, El sayed Gamal wrote: > You need to change your mysql database configurations, that's is it. > >

Re: Using django-profiles app twice in one project.

2012-12-29 Thread Ryan Blunden
The AUTH_PROFILE_MODULE functionality is being deprecated in Django 1.5 in favour of being able to create your own custom User models. It sounds like that would be the way to go, especially as the 1.5 release is just around the corner and trunk is normally rock solid. Cheers, Ryan On 27/12

Re: Actions after logout

2012-12-29 Thread Ryan Blunden
When you say you haver a "process in place", do you mean code sitting in a file? If you haven't already, create a logout url and hook it up to your code to delete the log out data. Then just call django.contrib.auth.logout() somewhere in your logout view. Cheers, Ryan On 27/1

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-29 Thread Ryan Blunden
Can you provide a single example of one of the fixture objects you're trying to import, as well as the model it corresponds to? On 29/12/2012, at 11:34 AM, Sam Raker wrote: > Hello, > I've got a very tight deadline, and I'm encountering a very frustrating > problem. Every time I try to use loa

Re: New at programming.

2013-01-07 Thread Ryan Nowakowski
On Mon, Jan 07, 2013 at 11:11:08AM -0800, Bugra Bircan wrote: > Hi everybody. > > I am new at Django and Pyhton. I just installed them and tried to do > whatever tutorial says me. > > > Actually I am also new at programming too, maybe becasuse of that I stuck > at " https://docs.djangoproject

Re: Django lucene

2013-01-19 Thread Lie Ryan
On 18/01/13 02:43, Barun Saha wrote: Puneet, Were you able to solve this problem? I have been searching a solution for this almost the entire day! For the particular error that Puneet is having, I suspect that he should be using: ModelName.objects_search(name_first="Spike") instead of: Mo

Re: Questions about vim

2013-02-12 Thread Ryan Nowakowski
On Tue, Feb 12, 2013 at 11:22:54AM +, Yussi wrote: > Hi, > I was wondering if there are any vim users here who managed to get a > productive working environment for django here. > > I looked at the manuals, and set myself up with tags, omni complete, > and syntax error check, but it's far from

Re: Django project - Allow users to write a custom function and store in DB

2013-02-15 Thread Ryan Nowakowski
forever, long sleeps) aren't a deal breaker. By forking off a separate process you can do all kinds of things to create a security sandbox. You could run the process in a chroot or even a virtual machine. - Ryan On Fri, Feb 15, 2013 at 11:14:50AM -0200, George Silva wrote: > Hi Robin, > &

Re: Bootstrap does not format my templates..

2013-02-15 Thread Ryan Nowakowski
the Bootstrap CSS URL look correct? When you copy and paste the Bootstrap CSS URL into your browser do you see the Bootstrap CSS? - Ryan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: i need help

2013-02-17 Thread Ryan Nowakowski
] than "i need help" in the subject. - Ryan 1. https://docs.djangoproject.com/en/1.4/intro/tutorial01/ 2. http://www.catb.org/esr/faqs/smart-questions.html#bespecific -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: Django upload file for mongodb with GridFS

2013-05-08 Thread Ryan Nowakowski
On Tue, May 07, 2013 at 08:38:57AM -0700, Hélio Miranda wrote: > Hi > I am making an application in Django with mongodb. > And I needed an upload of files that I want to use mongodb's GridFS. > > I am using mongoengine between Django and mongo. > > Has anyone done something like this? > > I am n

Re: Retrieving images from GridFS using django-tastypie-mongoengine

2013-05-08 Thread Ryan Nowakowski
On Wed, May 08, 2013 at 04:16:33AM -0700, Hélio Miranda wrote: > I have a project in Django, and I'm using mongoengine to save images into a > Mongo database using GridFS. > > All ok so far, but the problem is... when trying to retrieve the images via > http request, with a REST API made with dj

Re: Retrieving images from GridFS using django-tastypie-mongoengine

2013-05-15 Thread Ryan Nowakowski
On Thu, May 09, 2013 at 01:50:18AM -0700, Hélio Miranda wrote: > No, I'm not using GridFSStorage. > > I was just using mongoengine, with FileField field. > > To get the image have to use GridFSStorage? > How to use it? > GridFSStorage[1] is a Django storage backend[2]. You can override the def

Re: Django - Tastypie update

2013-05-30 Thread ryan west
Are you using a PUT request to make this change? If you are making a PUT request, as far as I know, Tastypie will attempt to replace the resource with what you are sending. If you only want to update 1 field on the resource, look at making a PATCH request. On Thursday, May 30, 2013 6:10:33 AM

Re: current transaction is aborted, commands ignored until end of transaction block

2013-05-30 Thread ryan west
Hi Andreas, The reason that you are seeing this likely is because of a bug in the way django handled Postgres autocommit. This has been documented here: https://docs.djangoproject.com/en/dev/releases/1.5/#behavior-of-autocommit-database-option-on-postgresql-changed Regards, Ryan On Friday

Re: URL shorteners

2013-07-02 Thread Ryan Nowakowski
here's quite a few different URL > >> shorteners. Anyone here have any experiences with them they would like > >> to share? Which one would be the best for my type of use case? > >> > >> Thanks! > >> -larry I've successfully used django-shortur

Backwards in the relationship chain?

2013-07-24 Thread Chris Ryan
I have spent hours trying to find the answer to this. What makes it even more frustrating is that I'm new to django development and not a real programmer by trade (I am a UNIX admin) so I am struggling to label what I am trying to do so that I can search for an answer. Here's what I have:

Re: Backwards in the relationship chain?

2013-07-24 Thread Chris Ryan
atalog_set", not > certain and don't have time to search the documents now), but whose name > your can specify with the "related_name" argument to the ForeignKey field. > This manager has all the usual queryset methods, so you can append ".all()' > to get

Re: Backwards in the relationship chain?

2013-07-24 Thread Chris Ryan
Sorry. I should have typed the ID as lower case id in {% if user.Family. <http://user.family.id/>id = object.Teacher.id.Family.<http://object.teacher.id.family.id/> id %} On Wednesday, July 24, 2013 3:28:52 PM UTC-4, Chris Ryan wrote: > > Thank you so much for the reply

What is the best way to architect this part of the application?

2013-07-31 Thread Chris Ryan
I thank you again for answering a different question a couple of weeks ago. Today, however, I'm struggling with the best way to architect a part of my app. I'm hoping that you can help me figure out the best way to provide the necessary functionality to the user. I am building an application

modelformset_factory not validating multiple forms

2013-08-01 Thread Chris Ryan
Hopefully this is an easy one. I have read through the documentation, searched online and just can't find a way around this error. I have two formsets that I've displayed in one view. The second formset is not validating upon POST so it won't save to the database. None of the fields are require

SOLVED: modelformset_factory not validating multiple forms

2013-08-01 Thread Chris Ryan
I found the problem! The fields were being processed as expected but since I am using the FamilyMember table as the authentication table I needed to include the username and other fields (as hidden). On Thursday, August 1, 2013 9:13:18 AM UTC-4, Chris Ryan wrote: > > Hopefully this

Parents can't enroll children in courses

2013-08-08 Thread Chris Ryan
I submitted this question in much, much more detail a couple of weeks ago but got no response. I'm thinking that maybe I gave you too much information. So, I thought I'd try just one more time. I have a table of family members. Some of them are students. These students are enrolled in one or mo

Django unittest failure

2013-09-14 Thread Ryan Boggs
eeded. Thanks, 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+unsubscr...@googlegroups.com. To post to this group, send email

Re: Django unittest failure

2013-09-14 Thread Ryan Boggs
and I didn't see any test failures with that version on OpenBSD. Thanks, Ryan On Saturday, September 14, 2013 5:47:09 PM UTC-7, WongoBongo wrote: > > Are you reusing an old database or something? There should be only two > users in the database prior to testing that section. > &

Re: Django unittest failure

2013-09-15 Thread Ryan Boggs
FYI, Just tried with 1.5.4 and the same test is still failing. Thanks, Ryan On Saturday, September 14, 2013 9:57:42 PM UTC-7, Ryan Boggs wrote: > > Hi, > > Thank you for responding. > > We are using the test_sqlite.py as the settings file for the regression > tests, whic

Re: Django unittest failure

2013-09-17 Thread Ryan Boggs
I reported it. #21118. Thanks for taking a look at this. Thanks, Ryan On Monday, September 16, 2013 7:16:25 PM UTC-7, WongoBongo wrote: > > You should probably open a bug on this issue. The test suite fails for me > on MacOS/Python 2.7 on the stable/1.5.x branch. This is the com

Re: Best-practice for building URLs in templates with JavaScript

2011-04-23 Thread Ryan Osborn
You could always make the payment_id group optional using a ?: update_payment/(?P\w+)? that way this will match either: update_payment/ or update_payment/123 Hope that helps, Ryan -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Double security login system

2011-04-28 Thread Mike Ryan
There is some discussion of two-factor auth systems in Django over at StackOverflow [1]. One of the answers links to an example app that implements two-factor auth [2], which sounds pretty close to what you are looking for (although you would need to replace their second factor with one of your own

Re: Giving inlined models in a form in admin a default value based on order in form?

2011-05-06 Thread Mike Ryan
I On May 6, 1:05 pm, Thomas Weholt wrote: > I've inlined a model so that when I add a new object of the parent > model ( for the inlined model ) I can add child model instances in the > same form, all done in admin.py. Standard stuff actually. But each > child object has a sort_order-field with d

Re: Giving inlined models in a form in admin a default value based on order in form?

2011-05-06 Thread Mike Ryan
Also, you could override the model's save to set the sort_order to (current_max + 1), if you just want to ensure that the newest children are sorted last by default. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: Django Bigener

2011-05-07 Thread Ryan Osborn
The django tutorial that the others have mentioned is the best place to learn the basics. There is also a book on E-Commerce in django: http://www.amazon.co.uk/Beginning-Django--Commerce-Experts-Development/dp/1430225351/ref=sr_1_9?s=books&ie=UTF8&qid=1304834462&sr=1-9 -- You received this mes

Django on FreeHostingCloud.com

2011-05-08 Thread Ryan Osborn
te.fcgi so that they should be on the python path. However, whenever I try to access the page, it always just shows the contents of the mysite.fcgi file instead of the django page. I was wondering if anyone had any experience in using django on FreeHostingCloud or if anyone could spot anything I

Re: Django on FreeHostingCloud.com

2011-05-10 Thread Ryan Osborn
Is no one able to offer any help? Thanks, Ryan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-user

Re: Update a user profile after LInkedin Oauth

2011-05-21 Thread Mike Ryan
Are you able to specify a dynamic return URL with LinkedIn's API? If so, you can: Generate a unique ID for each user (maybe even user.pk) Use this data in the return URL (e.g. example.com/oauth_return/ /) Attach that URL to a view which looks up the unique ID - you can now associate the user with

ANN: django-supervisor: easy integration between django and supervisord

2011-06-07 Thread Ryan Kelly
I hope you find it useful. Cheers, Ryan -- Ryan Kelly http://www.rfk.id.au | This message is digitally signed. Please visit r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details signature.asc Description: This is a digitally signed message part

How to remove feeds from community RSS?

2011-08-08 Thread Ryan Kaskel
I've accidentally added a my blog twice to the Django community site (the first time must have been a couple of years ago).How do I remove the duplicate entry at https://www.djangoproject.com/community/? My blog feed is http://ryankaskel.com/category/django/feed/rss/. Best, Ryan -- You rec

Re: post messages to facebook wall

2011-01-16 Thread Ryan Nowakowski
Truong, Have you downloaded the facebook SDK[1] yet? - Ryan 1. https://github.com/facebook/python-sdk/ On Mon, Jan 10, 2011 at 09:10:14AM -0800, trương thế linh wrote: > Hi every body, > I'm a newbie to django. > please suggest me an app to intergrate with django to do allo

Geodjango: ogrinspect on a Postgis layer?

2011-01-28 Thread Ryan Clark
d the following: ogrinspect PG:"dbname=xxx host=xxx port=xxx user=xxx password=xxx" modelname --mapping ... but that doesn't really make sense since it is pointing to a database and not just a single layer. Any advice? Thanks, Ryan -- You received this message because you are s

Re: Storing *big* texts in db fields

2011-02-01 Thread Mike Ryan
(I tried to post this once before, but the browser crashed so I am not sure if it got posted. Apologies for dupe content if so) Is it possible the wordcount function is slowing everything down? Does it run each time you view the admin page? If so, I would try adding it as an attribute to the model

Spatial SQL to Django Query Help

2011-02-01 Thread Ryan Clark
_part is correctly populated, but result_set comes up empty. I cannot for the life of me figure out why. If anyone can see a better way to formulate that SQL query, or knows what is going wrong with my two queries, let me know! Thanks, Ryan -- You received this message because you are sub

Re: Django + WebDAV

2011-02-16 Thread Michael Ryan
this to this group. This is > > very interesting. :-) > > I`ve made a ftpserver which authenticates logins using django user > > management, but a webdavserver would be even nicer. > > > Thomas > > > On Tue, Feb 15, 2011 at 5:50 AM, Michael A. Ryan > > wro

How to merge querysets and sort it?

2011-02-22 Thread Ryan Wijaya
For me it takes more than a week to solve it alone... So to the point, is it possible to merge two querysets and sort it as well? Recently I've used itertools, but it returns a table with duplicated value and requested objects not properly displayed (the get_full_name displayed separately with othe

Repetition in urls.py

2011-03-24 Thread Ryan Osborn
0),name='blog_archive_day'), url(r'(?P\d{4})/(?P[a-z]{3})/(?P\d{2})/(? P[\w\-]+)/$', DateDetailView.as_view(model=Entry,date_field='created'),name='blog_entry_detail'), ) I was just wondering if there was a simple way to condense this as with django 1.2 I could

Re: Repetition in urls.py

2011-03-24 Thread Ryan Osborn
Thanks guys, works great On Mar 24, 7:54 pm, akaariai wrote: > On Mar 24, 9:40 pm, Ryan Osborn wrote: > > > > > > > > > > > Hi, > > > I am using django 1.3 and have the following in my urls.py for a > > blogging applicat

unique_for_date not working?

2011-03-25 Thread Ryan Osborn
try in the admin interface with a slug and then immediately afterwards add another entry with the same slug without an error being rasied. Am I missing something? Thanks, Ryan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: unique_for_date not working?

2011-03-25 Thread Ryan Osborn
Thanks for your reply Jacob. The only problem with the method you suggested is that the field now shows up in the admin form which allows people to edit it. I would rather that this didn't happen. Is there any way around this? Thanks, Ryan On Mar 25, 1:54 pm, Jacob Kaplan-Moss wrote:

Re: unique_for_date not working?

2011-03-25 Thread Ryan Osborn
The problem with this is that the unique_for_date no longer works again On Mar 25, 3:15 pm, Daniel Roseman wrote: > On Friday, March 25, 2011 3:01:47 PM UTC, Ryan Osborn wrote: > > > Thanks for your reply Jacob.  The only problem with the method you > > suggested is that the

Re: How to send emails?

2011-03-30 Thread Ryan Osborn
Hi, django-registration can take care of this for you: https://bitbucket.org/ubernostrum/django-registration/ Ryan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegrou

Re: How to store multiple instances of a single object in the database

2011-03-30 Thread Ryan Osborn
ion: http://docs.djangoproject.com/en/1.3/topics/db/models/#intermediary-manytomany Hope this helps, Ryan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe f

Re: How to store multiple instances of a single object in the database

2011-03-31 Thread Ryan Osborn
No problem, glad to have helped :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For

Re: Static/media url in template

2011-04-05 Thread Ryan Osborn
You need to have *django.core.context_processors.media* in your TEMPLATE_CONTEXT_PROCESSORS setting in order to use this template tag. The same with STATIC_URL, you need to have * django.core.context_processors.static* in order to use it. Hope this helps, Ryan -- You received this message

Re: Social Auth

2011-04-10 Thread Ryan Nowakowski
On Tue, Mar 29, 2011 at 09:56:15AM -0700, bish029 wrote: > how to get id or key required for social oath from facebook and use it > to test my development while i am still developing the site but not > yet launched it Create a test facebook app and use that app ID for development. -- You re

Re: Deploying Pinax to bluehost

2011-04-10 Thread Ryan Nowakowski
On Sun, Mar 27, 2011 at 10:27:54AM -0700, Antik wrote: > I created a Pinax website on localhost and I have been trying to > deploy it to my hosting server at bluehost.com, but I am really lost > as to how this works. COuld anyone shed light on the process? Thanks! I've deployed Pinax on bluehost b

Re: High availability deployments

2011-04-10 Thread Ryan Nowakowski
On Wed, Mar 23, 2011 at 11:29:00PM -0700, Shamail Tayyab wrote: >We have a setup in which we can't afford downtime (even while > deployment). > > Our setup is based on lighttpd + django (on fcgi via flup). What my > problem is, when we restart django, the site goes down for about a > couple of

FORM: How to specify current user as value for a form ForeignKey referencing logged on user

2015-03-08 Thread Ryan Alexander
rm): provider = forms.ModelChoiceField(queryset=Provider.objects.all(), help_text="Provider") authid = forms.CharField(max_length=256, help_text="AuthID") authtoken = forms.CharField(max_length=256, help_text="AuthToken") user = Many thanks in advance, Ryan

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 to

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
Egg. The second fails. I would have 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

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 obj

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-users+unsubscr...@goog

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

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 th

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 All, > >Can we use Django for

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, Mohsen

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 for a single market ca

Re: Creating models from json url feed

2018-05-12 Thread Ryan Nowakowski
t; > On Sun, May 13, 2018 at 1:51 AM, Ryan Nowakowski > wrote: > > > > > > > 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. > &g

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

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* >*Traceback (most recent c

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

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

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 wrote: >In addition to websockets, channels can be used to run background ta

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

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 migr

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 v

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 followi

Validators and django.contrib.postgres.fields JSONField

2016-08-21 Thread Ryan Causey
define __eq__ 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 g

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

2016-08-27 Thread Ryan Causey
nstructed 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 whe

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

2016-08-28 Thread Ryan Causey
t way 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

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

2016-12-03 Thread Ryan Nowakowski
the model.clean method: def clean(self): if self.gender == 'O' and self.custom_gender == '': raise ValidationError({'custom_gender': "Please enter your other gender"}) Note that you could implement the clean method on

Re: Need help with a school project

2017-01-16 Thread Ryan Nowakowski
x27;ll do 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+u

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

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 s

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

Re: Looking for a Django co-founder

2019-03-14 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 o

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 worki

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

<    1   2   3   4   5   6   >