High level design of Serverless Django app with Zappa

2024-01-19 Thread w h
Hi, I am migrating my manual lambda python serverless backend to the Django framework and going to deploy it with Zappa onto AWS lambda. Please that if anyone knows and can share if this is a good approach and any difficulties I may be facing. -- You received this message because you are subsc

Mouse movement detection and processing from client UI

2021-10-26 Thread Tristania W
So there are Python packages out there that can handle mouse movement detection locally. But for a Django app, how do we go about do this? Clearly we cannot have any processing power on the client machine. Below are some examples to be more specific: 1 - An e-commerce page where buyer clicks, dr

Re: Template inheritance with dynamic content

2020-11-16 Thread Tristania W
zipping within "*some_view*" itself, then passing the zip object into "include" works. I have no idea why, though. Thanks very much. On Saturday, 14 November 2020 at 04:04:04 UTC-7 Tristania W wrote: > Hi, > > To follow up, when I tried the following: > * {% include &q

Re: Template inheritance with dynamic content

2020-11-14 Thread Tristania W
; <https://docs.djangoproject.com/en/3.0/ref/templates/builtins/#include> > directive. > > > Just have your parent and child include the same block and use with… > phrase to override variables within the included template. > > Regards, > David > > > On

Template inheritance with dynamic content

2020-11-13 Thread Tristania W
Is it possible to make one sub-template inherit a div with dynamic content from an upper level template? For eg., Template2 extends Template1. Within Template1, there is a div XXX that depends on a variable {{ var1 }}. This variable is passed to the view *def view1*, which renders Template 1. W

Re: job search

2019-08-20 Thread Sam W
I'm sorry. But knowing Python alone is not enough. I know Python and Django really well, still can't find a job for more than six months. You need to know Solid Python programming, python framework (Django (DRF) & Flask), Docker and Kubernetes, AWS or Azure, Front-end development (React

tinymce no module exists

2019-08-04 Thread Sam W
Add it to the installed apps INSTALLED_APPS = ( ... 'tinymce', ) -- 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.

Re: can anyone help me to solve the following error in django-vue integration

2019-08-02 Thread Sam W
Did you add 'corsheaders', to the settings file? The Error is very clear: *npm ERR! frontend@1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`* Install : pip install django-cors-headers Then add: 'corsheaders',to the INSTALLED_APPS inside settings file in Django ser

Re: can anyone help me to solve the following error in django-vue integration

2019-08-02 Thread Sam W
Did you add 'corsheaders', to the settings file? Follow this link: https://pypi.org/project/django-cors-headers/ On Thursday, August 1, 2019 at 10:18:11 PM UTC-5, Pradeep Singh wrote: > > F:\django-vue project\djangoVueProject\frontend\webpack.config.js:81 > 'vue$': 'vue/dist/vue.esm.js' >

Re: Drag and drop

2019-08-02 Thread Sam W
Use Javascript or jQuery check out this link: https://simpleisbetterthancomplex.com/tutorial/2016/11/22/django-multiple-file-upload-using-ajax.html *10 jQuery File Upload Plugins:* https://www.sitepoint.com/10-jquery-file-uploads/ On Friday, August 2, 2019 at 10:00:44 AM UTC-5, Django Dojo wrote

Re: django-vue

2019-08-01 Thread Sam W
*Udemy * The Complete Guide to Django REST Framework and Vue JS https://www.udemy.com/the-complete-guide-to-django-rest-framework-and-vue-js/ On Thursday, August 1, 2019 at 2:46:10 AM UTC-5, Pradeep Singh wrote: > > can anyone sugget me django-vue tutorial > -- You received this message becau

Re: Only for specific region

2019-07-30 Thread Sam W
Use IP2LOCATION to detect the location of the user IP address then you can show pages based on it On Monday, July 29, 2019 at 8:07:07 PM UTC-5, Sebastian Jung wrote: > > Hello, > > I want that my Website only German user can Open it and another User from > Others Region a template Show, that t

Re: Sign Up by using E-mail id

2019-07-24 Thread Sam W
This is the official page. It is really simple to follow: https://docs.djangoproject.com/en/2.2/topics/auth/default/ On Wednesday, July 24, 2019 at 5:27:37 AM UTC-5, Soumen Khatua wrote: > > Hi Folks, > I want to create one signup page where end-user can SignUp and LogIn by > using their e-mail

Re: Sign Up by using E-mail id

2019-07-24 Thread Sam W
Check this one out: Django Authentication with just an email and password (no username required!) https://medium.com/@ramykhuffash/django-authentication-with-just-an-email-and-password-no-username-required-33e47976b517 On Wednesday, July 24, 2019 at 5:27:37 AM UTC-5, Soumen Khatua wrote: > > Hi

Re: integrate vue js with django

2019-07-15 Thread Sam W
*Use Django REST framework for Django and Vue.axios for vuejs* *Example: * https://medium.com/@jrmybrcf/how-to-build-a-project-with-django-vuejs-create-a-rest-api-endpoint-b57374a89661 On Monday, July 15, 2019 at 12:10:48 AM UTC-5, Pradeep Singh wrote: > > can anyone tell me how to integrate vu

Re: Question about makemigrations

2019-06-21 Thread Rob W
"Migrate is basically the old syncdb but it takes into account all the migrations made by makemigrations. You should run the command -migrate- after adding a new app under the INSTALLED APPS section in the settings.py file in order to synchronize the database state with your current set of model

Djano rest api

2019-06-12 Thread Rob W
Hi all, I need to see a django rest api, with proper endpoint design - REST-ish by using paths, HTTP methods, response codes, JSONs, errors returned in JSON, Anyone have this already completed that I can take a look at? -- You received this message because you are subscribed to the Google Grou

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2019-05-16 Thread Rob W
First, you should not share your password to your server to anyone….thats very dangerous. Now anyone can log in to your server with nefarious intentions. Be more careful. But it sounds like something on the server is blocking your connection. > On May 16, 2019, at 8:57 AM, omar ahmed wrote

Re: Django Upload multiple files without using Django forms or models

2019-05-13 Thread Sam W
Yes long time ago .. follow this tutorial https://simpleisbetterthancomplex.com/tutorial/2016/11/22/django-multiple-file-upload-using-ajax.html On Monday, May 13, 2019 at 10:00:24 AM UTC-5, christophe szczepanski wrote: > > *do solved your problem ? , i have the same ?* > > > *Thank you :)* > --

Re: problems with mysql client

2019-05-12 Thread Rob W
at 9:04 AM Rob Gmail <mailto:randmwhee...@gmail.com>> wrote: > Mac OS > > Rob > 203-671-6514 > Sent from my mobile device, please excuse the typos. > > On May 11, 2019, at 11:42 AM, Jorge Gimeno <mailto:jlgimen...@gmail.com>> wrote: > >> >&g

problems with mysql client

2019-05-11 Thread Rob W
for my django project, we are using mysql. no matter how i try to install it, python-mysqldb, or just pip install mysqlclient, it fails. i've installed mysqlconnector, i've tried everything. any suggestions ? Collecting mysqlclient Downloading https://files.pythonhosted.org/packages/f4/f

reporting

2019-05-09 Thread Rob W
whats the best web reporting tool to use that easy and will easily integrate with django ? -- 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

Need help with project

2019-05-08 Thread Rob W
There are a few of us in a group slack who are trying to build a working production django ap for reporting. We are looking for someone who really knows Django to guide us through this project. We are all really hoping that someone will be kind enough to guide us and help us build this app. i

Re: django project

2019-05-06 Thread Rob W
nd me the details.. > > On Mon 6 May, 2019, 8:04 PM Rob W, <mailto:randmwhee...@gmail.com>> wrote: > Yes, I’m a beginner too, but need to get it completed. The first piece > should not be too difficult. > > > >> On May 6, 2019, at 10:32 AM, fazal rehm

Re: django project

2019-05-06 Thread Rob W
Yes, I’m a beginner too, but need to get it completed. The first piece should not be too difficult. > On May 6, 2019, at 10:32 AM, fazal rehman wrote: > > Is it for beginners ? > > On Mon 6 May, 2019, 8:01 PM , > wrote: > I am looking for 2 people to work wit

Re: help with URLS.PY

2019-05-03 Thread Rob W
Sure. Here is my urls.py from django.conf.urls import url from django.contrib import admin from django.urls import path from vr_reporting_app.views import HomeView from vr_reporting_app.views import Local from vr_reporting_app.views import User from vr_reporting_app.views import School urlpatt

Re: help with URLS.PY

2019-05-03 Thread Rob W
It does not, I changed the name, stil the same error > On May 2, 2019, at 8:23 PM, Abishek Goda wrote: > > > Hi, > >> >> As I said, the dashboard.html works, i just want another menu option to load >> the other html file. i have commented this out as it causes my app to break. > So the iss

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-27 Thread Rob W
Can you send a copy of your models.py or a copy/paste of the class that shows the error? > On Apr 27, 2019, at 4:41 PM, tossouwisdom wrote: > > django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the > django_migrations table (ORA-00907: missing right parenthesis) > > L

problems with url and views - new to django

2019-04-21 Thread Rob W
setting up a new project. all good, loaded up the project on localhost. however, when creating a view then setting the url, it doesn't work. *urls.py* from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), path('hello/', lct_app.s

Re: ReportLab or Xhtml2pdf Please can any one guide me to convert the rendered in html to pdf

2019-04-19 Thread Sam W
Use java then use py4j or Jython to call java method... https://www.baeldung.com/pdf-conversions-java On Fri, Apr 19, 2019, 1:11 PM Irfan Khan wrote: > hi, > i stucked in converting the pdf file from html > can an one suggest me even any other possibility instead of using python > library

Django Upload multiple files without using Django forms or models

2019-04-14 Thread Sam W
I want to upload multiple files to the system (Local folder) without using Django forms or models. For a single file, everything works just fine and the file get saved to a local media folder under the project. But when I changed the function from {request.FILES['images'] } To {request.FILES.ge

Re: Web Push Notification in Django

2019-03-25 Thread Sam W
This one is very simple: https://www.pushbots.help/install-pushbots-in-your-app-or-website/web-pages/add-pushbots-to-your-web-page On Monday, March 25, 2019 at 11:28:43 AM UTC-5, Aayush Bhattarai wrote: > > *I am working on blog project and I wanted to add Web Push Notification in > Django. I ha

Re: Django REST custom registration

2019-03-25 Thread Sam W
Similar question in Stackoverflow: https://stackoverflow.com/questions/24791110/django-allauth-how-to-set-user-to-active-only-after-e-mail-verification/24809190 On Monday, March 25, 2019 at 4:17:11 AM UTC-5, shubham joshi wrote: > > How can I create sign up form in such a way that..once a form h

Re: Web Push Notification in Django

2019-03-25 Thread Sam W
Web Push Notification Package for Django: https://github.com/safwanrahman/django-webpush On Monday, March 25, 2019 at 11:28:43 AM UTC-5, Aayush Bhattarai wrote: > > *I am working on blog project and I wanted to add Web Push Notification in > Django. I have researched a lot. I have not found prop

Re: custom registration form

2019-03-25 Thread Sam W
Similar question in Stackoverflow: https://stackoverflow.com/questions/24791110/django-allauth-how-to-set-user-to-active-only-after-e-mail-verification/24809190 On Monday, March 25, 2019 at 7:52:57 AM UTC-5, Shubham Joshi wrote: > > How can I create sign up form in such a way that..once a form h

Re: log out a user when user closes tab or browser

2019-03-21 Thread Sam W
closing a tab will not log you out >> also it depends on the browser (firefox seemed in the past to ignore this) >> >> On Thu, 21 Mar 2019 at 05:34, Sam W > >> wrote: >> >>> Is there a way in Django to log out a user when user closes tab or >>>

Re: log out a user when user closes tab or browser

2019-03-21 Thread Sam W
AT_BROWSER_CLOSE works for me > but only when you close the browswer, closing a tab will not log you out > also it depends on the browser (firefox seemed in the past to ignore this) > > On Thu, 21 Mar 2019 at 05:34, Sam W > > wrote: > >> Is there a way in Django to log out

log out a user when user closes tab or browser

2019-03-20 Thread Sam W
Is there a way in Django to log out a user when user closes tab or browser? This one "SESSION_EXPIRE_AT_BROWSER_CLOSE =True" Doesn't work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: django vue javascript integration

2019-03-01 Thread Sam W
Why don't you use Django REST framework ? Try this : How to Integrate Vue.js with Django Rest Framework? https://www.techiediaries.com/django-rest-vuejs/ On Friday, March 1, 2019 at 11:36:37 AM UTC-6, Tomas Garijo wrote: > > Hello group, > > I have a huge problems to integrate a vue javascript f

Re: django vue javascript integration

2019-03-01 Thread Sam W
Why don't you use Django REST framework ? On Friday, March 1, 2019 at 11:36:37 AM UTC-6, Tomas Garijo wrote: > > Hello group, > > I have a huge problems to integrate a vue javascript file in one template, > only for testing, I'm searching on google but unfortuny I can't find anything. > I have a

Re: Problems with first program

2019-03-01 Thread Sam W
The error is very clear "IndentationError: expected an indented block" Use PyCharm IDE OR Visual Studio Code. Also, never use Keyboard Spacebar for indentation , always use Tab for indentation. TO solve your problem take the question_text to the beginning of the line then hit the Tab once. O

Re: Tutorials Needed

2019-03-01 Thread Sam W
This YouTube Channel is really good Taught by Corey Schafer https://www.youtube.com/watch?v=UmljXZIypDc Python Django Tutorial: It has more than 17 videos about Django. On Thursday, February 28, 2019 at 12:54:06 PM UTC-6, Madhav Rajmohan wrote: > > Friends, > I am Madhav Rajmohan

What's the difference between using mariadb as database and using mysql?

2019-02-28 Thread x w
I'm using a Linux distribution called manjaro and mysql has been replaced with mariabd in the official repository. When I use maridb as database, what is the difference with mysql? Is there something special that I should pay attention to? -- You received this message because you are subscribe

Re: Cannot install channels

2017-04-03 Thread David W
I would add that the required package could be "python3.6-dev" if you're working with Python 3.6. On Friday, February 10, 2017 at 8:16:17 AM UTC+1, Robin Lery wrote: > > Yes. That might have been the problem. Thank you once again! > > On Fri, Feb 10, 2017 at 12:43 PM, Andrew Godwin > wrote: > >>

Re: How does django pass data through post?

2016-12-01 Thread Jordan W
Daniel, you nailed it! I didn't have the name specified. Adding that makes it propagate through! On Monday, November 28, 2016 at 6:34:19 PM UTC-6, Jordan W wrote: > > Hi, > > I have been working on a small project for myself and some friends, and I > seem to have hit a hi

How does django pass data through post?

2016-11-28 Thread Jordan W
Hi, I have been working on a small project for myself and some friends, and I seem to have hit a hitch in getting it to work as expected. In my detail view, I have a small simple form: {% csrf_token %} Prepare My main list view and detail view are class based views, with m

Nagios plugins for Monitoring Django Apps

2016-04-27 Thread Keir W
Does anyone have any tips on monitoring the health & status of a django app, possibly with the use of a Nagios plugin? I am using check_log to grep out any errors from the apache error log file (when using mod_wsgi) but wondered if I was missing a trick and someone had something better to try.

DJANGO TUTORIAL

2016-03-21 Thread Anthony W Smith
When I follow django tutorial on the django site for the polls app I keep getting the error after runnig the python manage.py runserver command it says no modsule named my site. Please help Anthony -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Django Newbie - Tutorial Recommendations?

2016-03-19 Thread Anthony W Smith
On Friday, March 18, 2016 at 8:31:56 AM UTC-4, Santosh Srinivas wrote: > > Hi Folks, > > I'm new to both Python and Django. > I am looking for high quality video tutorials on Django and Python from > your experience (paid is also fine). > > Please advise. > > Thank you. > Santosh > -- You rece

Re: How to save a table in a cell in django models.

2015-12-02 Thread Timothy W. Cook
On Wed, Dec 2, 2015 at 2:27 AM, Billu wrote: > What I want to do is generate a HTML table (alongwith other data viz. > images, text) when somebody opens a page. > > So how would I *save *a table, i.e, what would be the keyword for it eg. > CharField, IntegerField. > > I've googled and people have

Re: QuerySet values() or values_list() with some RelatedObjectDoesNotExist records returns only those records with valid related intances

2015-11-18 Thread Steve W
the record. #Perhaps a modification of queryset.values() to include the select_related() invocation on each related model would return all values as expected. #Somewhere in the django.db.models.query.ValuesQuerySet I would imagine. thanks. On Thursday, November 19, 2015 at 12:31:44 AM UTC, Steve

QuerySet values() or values_list() with some RelatedObjectDoesNotExist records returns only those records with valid related intances

2015-11-18 Thread Steve W
Condition: A model with a ForeignKey or OneToOne relationship to another model, where the related model instance may be null. Desired Behavior: queryset.values() or values_list() returns all records from queryset, not just those with valid related model instance. Observed Behavior: queryset.va

Re: Making a field readonly according to the user in admin.py

2015-11-18 Thread Timothy W. Cook
While Jani's admonishments might be considered 'best practice' in some cases. Those do not always cover everyone's use case. I solved a similar issue allowing users with the superuser role to have edit access to some items that other staff do not have access to edit. Use the get_form method of th

Re: Django on CentOS

2015-11-10 Thread Timothy W. Cook
If you have the option use a different Linux distribution. If you must use CentOS this may help with getting Apache and Python (newer than 2.6) working. http://stackoverflow.com/questions/21158918/django-mod-wsgi-psycopg2-improperlyconfigured-error-loading-psycopg2-module I see that since I had

Re: Django w/ XML DOM

2015-09-18 Thread Timothy W. Cook
lxml - I assume using XPath will do what you want. I am not familiar with XML cursor and jaxb. On Fri, Sep 18, 2015 at 9:03 PM, Arnab Banerji wrote: > Hi - I am looking for a way to display XML documents in Django and get the > xml section information from cursor location using XMLCursor like >

Re: Can u tell me how to build restful api project in django

2015-08-14 Thread Timothy W. Cook
Did you follow these instructions? http://www.django-rest-framework.org/tutorial/quickstart/ Spend the time on the tutorial. It will save you time in the long run. On Fri, Aug 14, 2015 at 10:59 AM, HARSHIT GARG wrote: > I am getting the following error: > > ImportError: rest_framework doesn't

Re: Django - Website Bootstrap Design Breaks For Production

2015-07-17 Thread Timothy W. Cook
You may find that even after running collectstatic the dev server doesn't see the static files. You can add the --insecure option to runserver, with DEBUG=False and it should work as expected. On Fri, Jul 17, 2015 at 6:44 AM, Andreas Kuhne wrote: > Hi, > > There is a difference to running the r

Re: Recommend guide to setting up a production server with Django and Python 3

2015-07-10 Thread Timothy W. Cook
This is a couple of years old but I used it for a template and it works great. http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ On Fri, Jul 10, 2015 at 8:42 AM, Christian Kleineidam < christian.kleinei...@gmail.com> wrote: > Is there a recommended guide to

Re: Testing Setup gives 500, but dev server works okay

2015-05-25 Thread Timothy W. Cook
I should add that the actual error is: selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: {"method":"id","selector":"id_login"} because the main page never loads so it can't find the login button, On Mon, May 25, 2

Testing Setup gives 500, but dev server works okay

2015-05-25 Thread Timothy W. Cook
I have a project that I started, then decided I should apply a TDD approach. Well the user registration and login portion already works but I am attempting to add some tests to it. The user can register, is redirected back to the main page with a Login button. Here is the test code: def test

Re: Improve Performance in Admin ManyToMany

2015-05-20 Thread Timothy W. Cook
#x27;,'dvratio',]:* *formfield.queryset = formfield.queryset.select_related('prj_name')* *return formfield* Reduced the number of queries to 33 and the time to 182ms. Awesome, thanks for the pointers. On Sun, May 17, 2015 at 8:53 PM, Timothy W. Cook wrote:

Re: Improve Performance in Admin ManyToMany

2015-05-17 Thread Timothy W. Cook
On Sun, May 17, 2015 at 4:20 PM, Erik Cederstrand wrote: > > I just noticed you have a typo: > > if db_field.name in ['cluster', ... > > should be: > > if db_field.name in ['clusters', ... > > according to your model definition. > > ​Thanks Erik. Yes, that was a typo. Unfortunately fixin

Re: Improve Performance in Admin ManyToMany

2015-05-16 Thread Timothy W. Cook
On Sat, May 16, 2015 at 5:27 PM, Erik Cederstrand wrote: > > > Den 15/05/2015 kl. 20.54 skrev Timothy W. Cook : > > > > def formfield_for_many_to_many(self, db_field, *args, **kwargs): > > formfield = super(ClusterAdmin, > self).formfield_for_many_to_

Re: File Upload in Django

2015-05-16 Thread Timothy W. Cook
The official docs are a good place to start https://docs.djangoproject.com/en/1.8/topics/http/file-uploads/ This GitHub example is about the newest one available showing the changes in recent Django versions https://github.com/axelpale/minimal-django-file-upload-example On Sat, May 16, 2015 at

Re: Improve Performance in Admin ManyToMany

2015-05-15 Thread Timothy W. Cook
On Fri, May 15, 2015 at 7:25 AM, Erik Cederstrand wrote: > > > I wonder if there is another approach that I can use to solve this? > > Does the suggestion to append select_related() / prefetch_related() to the > queryset in your admin view not work? > ​If I implemented it correctly, it doesn't h

Re: Improve Performance in Admin ManyToMany

2015-05-14 Thread Timothy W. Cook
lds is displayed in the admin. To make sure >>> only one query is executed you must make sure Baz.bars are selected with >>> their related Foo objects: >>> >>> from django.contrib import admin >>> >>> class BazAdmin(admin.ModelAdmin): >>>

Re: Improve Performance in Admin ManyToMany

2015-05-14 Thread Timothy W. Cook
raham wrote: > Are you sure it's the query that's slow and not the template rendering > and/or JavaScript performance? > > > On Wednesday, May 13, 2015 at 12:32:50 PM UTC-4, Timothy W. Cook wrote: >> >> I have a model with 13 M2M relations and some of those have a

Improve Performance in Admin ManyToMany

2015-05-13 Thread Timothy W. Cook
I have a model with 13 M2M relations and some of those have a few thousand instances. This renders rather slowly in the Admin. Thinking about improvements I wonder if it will help to setup prefetch_related queries https://docs.djangoproject.com/en/1.8/ref/models/querysets/#prefetch-related inside

Stale contenttype

2015-05-06 Thread Timothy W. Cook
Django 1.8.1, PostgreSQL 9.3, Python 3.4, Ubuntu I have a project that started under Django 1.4 and I have been migrating through the updates as they were published. At one point (I think under Django 1.5) I installed django-authtools (currently at 1.2.0) I am of course using Django migrations n

Re: Admin Inlines

2015-04-25 Thread Timothy W. Cook
For reference. My mistake is that I really have a ManyToMany relationship and I used this http://www.mc706.com/tip_trick_snippets/18/django-manytomany-inline-admin/ to solve the problem. Thanks to Ryan McDevitt. On Sat, Apr 25, 2015 at 3:11 PM, Timothy W. Cook wrote: > The usage

Admin Inlines

2015-04-25 Thread Timothy W. Cook
The usage of AdminInlines seems backwards to me. At least in the use case I have. I have two models: DvInterval: lower = models.CharField(max_length=110) upper = models.CharField(max_length=110) ... ReferenceRange: ​ ​ ​ ​ ... ​data_range = models.ForeignKey(DvInterval)

Re: Migrations During Development

2015-04-25 Thread Timothy W. Cook
On Sat, Apr 25, 2015 at 2:15 PM, Javier Guerra Giraldez wrote: > > > with South i used to save them to the repo too and push whole to > production. haven't tried Django migrations yet; is there any > difference that make this more appropriate? > > ​Hmmm, good question. That was kind of my quest

Re: Migrations During Development

2015-04-25 Thread Timothy W. Cook
n the Django >> project you are deploying. >> >> On Sat, Apr 25, 2015 at 9:26 AM, Timothy W. Cook wrote: >> >>> Django 1.8 Python 3.4 PostgreSQL 9.3 >>> >>> During development I am creating several migrations. It seems >>> unnecessa

Migrations During Development

2015-04-25 Thread Timothy W. Cook
Django 1.8 Python 3.4 PostgreSQL 9.3 During development I am creating several migrations. It seems unnecessary to keep these since they only exist on my dev machine. Any data that I have created can be thrown away too. Is it safe to delete these migrations (and the database) before deploying to

Re: Version

2015-04-21 Thread Timothy W. Cook
I really doubt a new user wants to install 1.4 After getting your virtualenv setup then use: pip install django to install the latest version. On Tue, Apr 21, 2015 at 9:12 AM, Andreas Kuhne wrote: > Hi, > > First of all, don't use apt-get to install django, you will never get the > version

Re: Django Admin UI Bug - 1.7.3

2015-01-18 Thread Timothy W. Cook
On Sun, Jan 18, 2015 at 5:35 PM, Collin Anderson wrote: > Hi, > > Rename your __unicode__ to __str__. Python 3 doesn't know what > "__unicode__" is. :) > > ​Yep, that did it.​ Interesting that it was working up until now and that my AJAX calls worked either way. > You say this works fine: >

Re: Django Admin UI Bug - 1.7.3

2015-01-18 Thread Timothy W. Cook
="prj_name" means you can't easily change the name of > the project. > > ​Yes, Once created the name cannot be changed, and once an item is assigned to a project the attached items are immutable. Thanks, Tim > Collin > > On Friday, January 16, 2015 at 3:14:55

Re: Django Admin UI Bug - 1.7.3

2015-01-16 Thread Timothy W. Cook
I should also mention that I have some AJAX calls for the same information and they still work fine. So I am quite certain it is in the Admin templates or the Admin properties definitions. On Fri, Jan 16, 2015 at 5:56 PM, Timothy W. Cook wrote: > Is this a bug or did I miss something in

Django Admin UI Bug - 1.7.3

2015-01-16 Thread Timothy W. Cook
Is this a bug or did I miss something in the release notes? ​Moving from 1.6.4 to 1.7.3 the listing in the Admin UI is not resolving a related field now. There are not any model changes involved. Attached are two screen shots named for the versions. I haven't changed the admin code either. Fo

Re: Model to create forms

2015-01-09 Thread Timothy W. Cook
I think you are looking for a way to provide an abstraction like this http://django-forms-builder.readthedocs.org/en/latest/ On Thu, Jan 8, 2015 at 6:52 PM, Lorenzo Bernardi < lorenzo.berna...@lpn.cnrs.fr> wrote: > > Hello, > >> this is what _relational_ databases are built for. if you have two

Re: Multiple levels of user in django application

2014-11-29 Thread Timothy W. Cook
may have different > fields > > > > On Saturday, 29 November 2014 16:49:35 UTC+5:30, Timothy W. Cook wrote: >> >> >> >> On Sat, Nov 29, 2014 at 6:49 AM, Anju SB wrote: >> >>> Actually my application needs to store different information about

Re: Multiple levels of user in django application

2014-11-29 Thread Timothy W. Cook
​ ​There are similar examples you​ find with a search engine. The mailing list and stackoverflow are good places to look. > > On Saturday, 29 November 2014 13:34:49 UTC+5:30, Timothy W. Cook wrote: >> >> >> >> On Sat, Nov 29, 2014 at 3:51 AM, Anju SB wrote: >

Re: Multiple levels of user in django application

2014-11-29 Thread Timothy W. Cook
On Sat, Nov 29, 2014 at 3:51 AM, Anju SB wrote: > Thank you Scot Hacker. > But my application needs more than one user from the same group. > > ​You can have multiple users in a group. That is kind of the definition of a group. :-) See here: https://docs.djangoproject.com/en/1.7/topics/aut

Re: Does Django offers a way to generate data grid from database table like web2py

2014-11-28 Thread Timothy W. Cook
The Django 'admin' section provides this functionality. On Fri, Nov 28, 2014 at 2:55 AM, Sarbjit singh wrote: > What web2py GRID does is, that it takes the SQL table/query as argument, > and return the records satisfying the query. > > Records which are returned are seen in bootstrap enabled ta

Re: Upgrading Django (to 1.7)

2014-11-26 Thread Timothy W. Cook
Excellent resource. Thanks Andrew. On Tue, Nov 25, 2014 at 10:16 PM, Andrew Pinkham wrote: > Hi, > Upgrading Django (to 1.7) Part IV: Upgrade Strategies is now available! > > For the article: > afrg.co/updj17/a4/ > > For all of the material: > afrg.co/updj17/ > > I've also provided a checkli

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
Progress: I moved the Polymer code tree to my static directory and replaced the URL with designer This at least lets me load the designer. Now on to see if I can build ajax calls to class based views or maybe there is another way? Cheers, Tim On Wed, Nov 19, 2014 at 1:59 PM, Timothy W

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
Maybe I bit off too much to start. IT looks like this may be a better place to start. http://themikelewis.com/2014/10/01/django-and-polymer-the-basics-and-vulcanizing/ ... and not running the Django development server. On Wed, Nov 19, 2014 at 12:18 PM, Timothy W. Cook wrote: > > On We

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
html except the file is named designer.html vs. index.html Thanks, Tim > On Wed, Nov 19, 2014 at 3:02 PM, Timothy W. Cook wrote: > >> At the top of the both the main file where designer is called from and at >> the top of designer.html I have: >> {% load staticfiles

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
d designer-element.html are both returning 200 even though the url gets longer with each recursion; seems strange to me. Thanks, Tim On Wed, Nov 19, 2014 at 11:02 AM, Timothy W. Cook wrote: > At the top of the both the main file where designer is called from and at > the top of designer.html I

Re: Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
: > looks like the html rendered is making the recursive requests, are you > using {% static %} and {% url 'designer' %} ? > > On Wed, Nov 19, 2014 at 1:53 PM, Timothy W. Cook wrote: > >> >> I have a Django app that I want to include a UI similar to the Po

Webcomponents in Django

2014-11-19 Thread Timothy W. Cook
I have a Django app that I want to include a UI similar to the Polymer designer https://www.polymer-project.org/tools/designer/ Source code here: https://github.com/twcook/TdV-app-designer/tree/tdv plus the components installed via bower. I have built this designer as a standalone app and it wo

Squid or Varnish for Django?

2014-11-18 Thread Trupti W
Hi all, I have a django application that needs to be built to scale in the future. I am considering http caching & ESI for the solution. Has any of you any experience with either Squid or Varnish? What works better with Django? I just want the caching & ESI functionality. We are using NGINX a

Re: Setting up Apache to be the web server for apache for Django 1.7 and python 3.3

2014-10-03 Thread Timothy W. Cook
Of course http://www.giyf.com/ but unless you have some very compelling need to use Apache. This may be a better choice. http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ I found it to be much easier to setup and maintain. On Fri, Oct 3, 2014 at 9:42 AM,

Re: Rendering XML using XSLT

2014-09-27 Thread Timothy W. Cook
return response ​ ​ ​Thanks for the nudge in the right direction. ​ > > > On 27/09/14 12:37, Timothy W. Cook wrote: > > Some details I forgot are that this is Django 1.6.4, Python 3.4.1. > The 404 error is on http://192.168.1.9:8080/get_xsd/ccd-description.xsl >

Re: Rendering XML using XSLT

2014-09-27 Thread Timothy W. Cook
Some details I forgot are that this is Django 1.6.4, Python 3.4.1. The 404 error is on http://192.168.1.9:8080/get_xsd/ccd-description.xsl On Sat, Sep 27, 2014 at 8:10 AM, Timothy W. Cook wrote: > I have a view that opens an XML file (it happens to be a schema but that > doesn't m

Rendering XML using XSLT

2014-09-27 Thread Timothy W. Cook
I have a view that opens an XML file (it happens to be a schema but that doesn't matter) that specifies a stylesheet. It works as expected when opening the XML file locally. ​The stylesheet isn't applied when viewing the file via Django and I see in Firebug that I am getting a 404 on the styleshee

Re: Any stable and trusted packages for python XML?

2014-09-19 Thread Timothy W. Cook
XML is more complex than JSON and AFAIK there isn't a generic tool to do this. I work with XML all the time with Python/Django and I would only recommend lxml http://lxml.de/ On Fri, Sep 19, 2014 at 9:39 PM, Chen Xu wrote: > Hi Everyone, > I wonder if there is any good, stable and trusted

Re: Admin UI not commiting to DB

2014-07-15 Thread Timothy W. Cook
On Mon, Jul 14, 2014 at 12:44 PM, Tom Evans wrote: > > > Have you ruled out that this is simply a mid air collision? IIRC, > django admin has no mid air collision detection system > > Cheers > > Tom > > Eg if user A loads Item i, user B loads Item i, user A changes > i.foo='hi' and saves item i,

Re: Admin UI not commiting to DB

2014-07-12 Thread Timothy W. Cook
n you > will struggle to debug. Have you tried adding in log statements at key > points to try & see where things go haywire? > > > On Saturday, 12 July 2014 10:52:37 UTC+2, Timothy W. Cook wrote: >> >> Django 1.65, PostgreSQL. >> >> Several users of the admi

Admin UI not commiting to DB

2014-07-12 Thread Timothy W. Cook
Django 1.65, PostgreSQL. Several users of the admin UI in my app have noted that clicking Save or Save and Continue buttons does not always actually save changes to the database. Has anyone else seen this? I do override get_form in admin.py so that I can set some fields as readonly based on a bo

  1   2   3   4   >