Re: Looking for developers

2024-12-05 Thread 'Steven Mapes' via Django users
Feel free to drop me a message to st...@mapestech.co.uk On Wednesday, 4 December 2024 at 05:20:33 UTC Adan Popov wrote: > I have some works to be done on the frontend for a project, but I'm not > fluent in frontend libraries or frameworks. > Please ping me if you can do some frontend works and a

Re: How to Implement websocket in production.

2024-11-17 Thread 'Steven D. Wolk' via Django users
I can't help you. On Mon, Nov 18, 2024, 1:58 AM Om Khade wrote: > Hi, > > I wanted to understand how websocket is implemented in Django React stack. > > We are currently using AWS API Gateway Websockets API, which has some > issues while testing locally. > > Any insight would be appreciated. > >

Re: How to create an individual instagram message into threads?

2023-08-28 Thread 'Steven Mapes' via Django users
I've not used that app but creating email of messaging chains is quite easy. How I normally do it is to generate a unique identifier by using a uuid4 plus some custom values when a new thread/conversation is created and then this is passed and maintained during replies. There's probably someth

Re: table bank_app_bank has no column named DOB

2023-08-25 Thread Steven maithya
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> python manage.py runserver C:\Python311\python.exe: can't open file 'C:\\Users\\steve.musyoka\\Desktop\\CRM-master\\manage.py': [Errno 2] No such file or directory (en) PS C:\Users\steve.musyoka\Desktop\CRM-master> cd (en) PS C:\Users\steve.mus

errors am getting during running my project any help

2023-08-25 Thread Steven maithya
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> python manage.py runserver C:\Python311\python.exe: can't open file 'C:\\Users\\steve.musyoka\\Desktop\\CRM-master\\manage.py': [Errno 2] No such file or directory (en) PS C:\Users\steve.musyoka\Desktop\CRM-master> cd (en) PS C:\Users\steve.musy

Re: Undelivered Mail Returned to Sender

2023-06-15 Thread Steven Lizhi
Maybe you can use email cc param to send more email users. On Wed, Jun 14, 2023 at 8:19 PM Precious Imoniakemu < preciousimoniak...@gmail.com> wrote: > invoice_html = html2pdf('product/invoice.html', context) > > subject = 'Invoice for your order' > message = 'Plea

Re: Slow Performance of Django Web App

2023-06-12 Thread &#x27;Steven Mapes' via Django users
To start with I'd look at upgrading the project to the latest version of Django and Python as Python 3.10 and 3.11 have some performance improvements and you'll need to be on a Django 4 version to support them. That aside it sounds like you've got good caching architecture setup since it's wor

Re: how to convert to Django 3 or 4

2023-06-12 Thread &#x27;Steven Mapes' via Django users
2023 at 15:29:47 UTC+1 Rogerio Carrasqueira wrote: > I'm using python 2.7, wich your suggestion? > > Thanks > > > Rogério Carrasqueira > > > > > > Em sex., 9 de jun. de 2023 às 03:37, 'Steven Mapes' via Django users < > django...@googlegro

Re: how to convert to Django 3 or 4

2023-06-08 Thread &#x27;Steven Mapes' via Django users
t; rogerio.carrasque...@gmail.com> wrote: > So just to undersand, I cannot move directly from 1.4 to 4 I have to do it > in steps, right? > > Thanks > Rogério Carrasqueira > > > > > > Em qui., 8 de jun. de 2023 às 17:01, 'Steven Mapes' via Django users < &

Re: how to convert to Django 3 or 4

2023-06-08 Thread &#x27;Steven Mapes' via Django users
to 1.11 and 1.11 to 2 will be the hardest parts but it'll get easier once you're on 1.11 On Thu, Jun 8, 2023, 19:58 Rogério Carrasqueira < rogerio.carrasque...@gmail.com> wrote: > Hey Steven! > > Thanks for this information, do you have tried it before? I would like to >

Re: how to convert to Django 3 or 4

2023-06-07 Thread &#x27;Steven Mapes' via Django users
I'd suggest looking into using Adam Johnson's Django-Upgrade told -https://github.com/adamchainz/django-upgrade it will help you move between versions On Tuesday, 6 June 2023 at 15:24:36 UTC+1 Paul Haguet wrote: > There is a lot of function who can change. > > https://docs.djangoproject.com/en

Re: Django Froala Editor

2023-02-03 Thread &#x27;Steven Mapes' via Django users
Sorry hit send too soon. An alternative is to update your settings.py entry for FROALA_STORAGE_BACKEND to point to a different backend as per their docs https://github.com/froala/django-froala-editor#other-settings On Friday, 3 February 2023 at 14:30:12 UTC Steven Mapes wrote: > Easiest

Re: Django Froala Editor

2023-02-03 Thread &#x27;Steven Mapes' via Django users
Easiest way will be to overload their default upload view. If you look in the urls.py for the package it has two entries *path('image_upload/', views.image_upload, name='froala_editor_image_upload'),path('file_upload/', views.file_upload, name='froala_editor_file_upload'),* Take a look at tho

Re: Django microservice authentication problem.

2023-01-28 Thread &#x27;Steven Mapes' via Django users
Are you trying to authenticate via Django Rest FrameWork API or via the standard Django authentication system? It shouldn't really matter which it is as both can be scaled horizontally and you'll have no issue with authenticating so in order for us to help we'd need to understand what you are

Re: Card-Payment Integration.

2023-01-04 Thread &#x27;Steven Mapes' via Django users
There's several that you'll find integration projects for on github, personally I wrote my own lib to integrate Stripe and Paypal and much prefer stripe over paypal. it's a cleaner integration, faster flow for the user, lower fees, allows refunds for payments of any age whilst the card is valid

Re: Looking for available support to start a School Management Application

2022-11-07 Thread &#x27;Steven Mapes' via Django users
I'd be very reluctant to use existing OS projects for such a project unless they have proven security and a strong policy in place as you're talking about handling sensitive data. You should also double check with the school what license requirements they have as many will not allow 3rd party p

Re: Using django 4.1 code in django 3.2

2022-11-03 Thread &#x27;Steven Mapes' via Django users
It'll depend on whether your code is 3.2 compatible or not so you'd need to test it and check dependencies first On Thursday, 3 November 2022 at 09:28:40 UTC Kasper Laudrup wrote: > On 03/11/2022 10.18, Lakshyaraj Dash wrote: > > Is there any problem if I deploy my django app written with django

Re: Looking for a Django firm

2022-09-15 Thread &#x27;Steven Mapes' via Django users
I would be interesting in learning more Mike as would a one of my other business partners, both run companies UK based. https://mapestech.co.uk and https://www.springbourne-tech.com/ On Tuesday, 13 September 2022 at 01:02:09 UTC+1 Mike Dewhirst wrote: > Hi all - I'm looking for a Django outfit

Re: What Programming Language should i learn

2022-08-30 Thread &#x27;Steven D. Wolk' via Django users
Very good advice.. On Tue, Aug 30, 2022, 10:59 AM Shailesh Yadav wrote: > LOL, You mean you learned Django without first learning Python?. > > It depends but My suggestion would be to learn Python and later learn C++ > (So then you will get much clarity on what is the difference between these >

Re: What Programming Language should i learn

2022-08-30 Thread &#x27;Steven D. Wolk' via Django users
I dislike asp.net but it's popular and in demand. I prefer JSP and Java. On Tue, Aug 30, 2022, 10:35 AM fawemimo olawale wrote: > Which of these programming language should i learn > > Please I need counselling on this two language though i have prior > knowledge on Python Web Framework (Django

Re: Thanks

2022-07-28 Thread &#x27;Steven D. Wolk' via Django users
Thank you for your email. On Thu, Jul 28, 2022, 8:48 AM Mark Odoyo wrote: > Thanks > > > On Fri, Jul 22, 2022, 7:49 PM Gerardo Palazuelos Guerrero < > gerardo.palazue...@gmail.com> wrote: > >> I'm watching this series, it might help you understand. >> >> Python & Django 3.2 Tutorial Series >> >>

Re: upgrading from 1.11 and ran into builtin permission clash

2022-07-04 Thread &#x27;Steven Mapes' via Django users
What I'd advise is to upgrade to point just before it breaks, then update the permission to use a different name, then upgraded to 2.2 avoiding the name clash. Once upgraded then edit the permission to grant the permission to the users who need that permission based on your now renamed custom p

Re: Looking for experienced Django backend engineer

2022-07-04 Thread &#x27;Steven Mapes' via Django users
I'm always looking for new clients, over 2 decades development experience, server admin experience, DBA etc See https://www.mapestech.co.uk/ for more On Monday, 4 July 2022 at 04:11:26 UTC+1 anderso...@gmail.com wrote: > Just forward to my teammate. > Good luck > > On Sun, Jul 3, 2022 at 2:04

Re: django html error

2022-04-05 Thread &#x27;Steven Mapes' via Django users
If you check the output of runserver can you see a HTTP200 response? If so then the best starting place is to look into your projects base .urls.py and match up the URL you are requesting to the view being used. Once you have that what is happening next will depend on whether you are using func

Re: Django 1.5 app had subclasses without tables without proxy and now 1.6 won't sync with proxy

2022-04-05 Thread &#x27;Steven Mapes' via Django users
Migrations came in in 1.7 the docs for 1.8 show the following *Prior to version 1.7, Django only supported adding new models to the database; it was not possible to alter or remove existing models via the syncdb command (the predecessor to migrate

New contributor

2022-02-27 Thread steven samy
Hey, I am a beginner on this project, can you suggest to me some beginner friendly issues to contribute to -- 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 dja

Re: Needs help

2022-02-23 Thread Steven Mapes
If you mean how can you take an image of something and turn it into a working design for a LEGO build then you need to look into tools that can convert 2D or better, 3D captures into lego designs if such sites/code exists. It certainly won't be in Django, but then you can build a Django site to

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-08 Thread Steven Smith
What is hard reload? On Monday, February 7, 2022 at 12:43:08 PM UTC-6 abdouli...@gmail.com wrote: > Try hard reload it's little bit faster > > On Mon, Feb 7, 2022, 18:12 Steven Smith wrote: > >> Did this issue ever get resolved? I'm experiencing the same thing. O

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-07 Thread Steven Smith
Did this issue ever get resolved? I'm experiencing the same thing. Once it hits 100 forms or so it gets pretty slow. On Monday, September 22, 2014 at 10:48:52 AM UTC-5 Collin Anderson wrote: > Yes, if you want speed, using javascript and ajax is probably your best > bet. It will probably also

Re: Formsets

2022-02-06 Thread Steven Mapes
For me using select_related, prefetch_related and defer generally soft the issues. If that's still too slow then, if possible, you could look at using caching the queryset(s) you need the values. Have you run debug toolbar on the page to check what queries are running? On Saturday, 5 February 2

Formsets

2022-02-05 Thread Steven Smith
Hello all! I find formsets wildly useful...but very difficult to architect. I have them working...But I am running into a commonly documented problem...They are slow as you build up the number of fields and queries. Are there any general tips that can be used or share on how to improve thi

Re: Sanitize field from xss attacks in django models

2021-11-06 Thread Steven Mapes
Are you using the safe filter in your templates as otherwise that "attack" won't do anything but you are right that other XSS attack vectors can be used as per the example in the docs - https://docs.djangoproject.com/en/3.2/topics/security/#cross-site-scripting-xss-protection If you are using

Re: The Django app does not recognize a file that is in the folder for me

2021-10-22 Thread Steven Mapes
It'll most likely be because you are executing a file with a relative path and the Django is probably running in another folder so your best bet is to import BASE_DIR from settings.py then append the path to the app from your project root so /app.py On Thursday, 21 October 2021 at 17:26:36 UTC+

Re: Single page Application

2021-10-07 Thread Steven Mapes
You can use Django as a back-end for an SPA by using something like Django Rest Framework to put APIs in front of your models but it's not something that Django itself was planned to be. If you search online you'll find various other ways of making Django

Re: Django Permission

2021-10-06 Thread Steven Mapes
If you have the code in a file as you have then what's happening is that you trying to create the same Permission everytime Django runs. What you want to do is to create the permission against the BlogPost model itself within the class Meta. Then run a makemigrations and migrate to create the

Re: Multiple websites but one authentication system

2021-08-26 Thread Steven Mapes
You could use oauth between the projects. Look into https://django-oauth-toolkit.readthedocs.io/en/latest/ which would enable you to set up domain one as your authentication backend which the others could use On Thursday, 26 August 2021 at 09:46:11 UTC+1 Isaac wrote: > Am trying to understand

Async Help Needed

2021-08-12 Thread Steven Mapes
Does anyone have some links to good guides on getting asnyc to work with Django? I have a use case where I really need to have a view give an async response but I can't get even the most basic of examples working. I've tried the examples from https://testdriven.io/blog/django-async-views/ with

Re: Django Search Between 2 Dates

2021-02-03 Thread Steven Mapes
Are you looking at client-side filtering within datatables or server side filtering? Thiago's suggestion related to using filters when you fetch the queryset (https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-specific-objects-with-filters) On Wednesday, 3 February 2021 at 13:2

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-07 Thread Steven Mapes
Within Django Admin or somewhere else? Are you using FileFields and trying to save to the models or are you just trying to POST multiple files? On Thursday, 7 January 2021 at 12:25:10 UTC allaberdi...@gmail.com wrote: > -- You received this message because you are subscribed to the Google Grou

Re: Please help. ImportError with django 3.1

2021-01-05 Thread Steven Mapes
Do you have a function in the hello/views.py? That's the first place to start as the error suggests you do not. On Monday, 4 January 2021 at 14:39:32 UTC joshr...@gmail.com wrote: > hello is ur app name if so > from hello import views > try this > if not be clear what is hello,index > > On M

Re: attempt to write a readonly database

2020-12-30 Thread Steven Mapes
>> Try running as the root user using sudo permissions. >> >> All the best >> >> On Wed, Dec 30, 2020 at 8:18 PM Steven Mapes >> wrote: >> >>> This normally means that the user you are running your project as does >>> not have access to th

Re: attempt to write a readonly database

2020-12-30 Thread Steven Mapes
This normally means that the user you are running your project as does not have access to the SQLLite database file. I can see that you are running on windows so fine the database in the file system and check and change the owner as well as ensuring that the owner/group has read/write access to

Re: Multiple registration and login in django

2020-02-03 Thread Steven Mapes
First of all I urge you to ask yourself this question before you begin *"Why do I want to write my own authentication system?". *Generally speaking there is little reason not to use either the built in django authentication system or an existing 3rd party library if you wish to use OAuth for ex

Re: New to Django

2018-12-16 Thread Steven N
I think you have not installed django, `pip install django` you can confirm if django is installed in your current environment by doing `pip list` if it is, you will see it in the list. This might come in handy On Sun, Dec 16, 2018, 1:47 PM

Hiring | Simons Foundation | Full Stack Software Engineer | Onsite/Full time | New York City, NY

2017-05-09 Thread &#x27;Steven Ford' via Django users
Simons Foundation is looking for a passionate Full Stack Software Engineer! Simons Foundation exists to support basic - or discovery-driven - scientific research. We do this through direct grants in four areas: Mathematics and Physical Sciences, Life Sciences, Autism Research (SFARI), and Ed

Re: scarico() got an unexpected keyword argument 'string'

2016-04-22 Thread Steven Crockett
Your are capturing a URL parameter and naming it "string". First, I'm going to recommend you call your parameter something other than "string" (although that is a valid name). I will use "my_string" instead, so your url will look like: url(r'^scarico/(?P.+)/$', views.scarico, name='scarico') Th

Re: Authentication for mobile devices

2016-04-22 Thread Steven Crockett
If you are writing a native app, and using Django as a backend web service, there is no built-in library within django, as far as I know. I have used https://github.com/jpulgarin/django-tokenapi with some success. It is rather secure as long as you are using https in production. On Friday, April

Re: A Problem about UnicodeEncodeError

2016-04-22 Thread Steven Crockett
Hi. Could you post more of the exception traceback? Here is a workaround others have found for a problem similar to yours: https://code.djangoproject.com/ticket/23704 It seems to be something to do with your PATH setting within Windows possibly containing some non-standard character. On Friday

Re: Filter object by calculating duration from start and end time

2016-01-19 Thread Steven Nash
That's fine as am using Postgres on centos 7 Cheers Steve Sent from my iPhone > On 19 Jan 2016, at 21:19, Simon Charette wrote: > > Hi Steve, > > It looks like it might only work on PostgreSQL unti this bug is fixed. > > Simon > > Le mardi 19 janvier 20

Re: Filter object by calculating duration from start and end time

2016-01-19 Thread Steven Nash
n__gte=timedelta(minutes=time_in_minutes) > > > Cheers, > Simon > > Le mardi 19 janvier 2016 13:01:36 UTC-5, Steven Nash a écrit : >> >> Hi, >> >> Given an object such as: >> >> class Entry(models.Model): >> start = models.Ti

Filter object by calculating duration from start and end time

2016-01-19 Thread Steven Nash
Hi, Given an object such as: class Entry(models.Model): start = models.TimeField() end = models.TimeField() I'd like to be able to say something like: Entry.objects.filter(F('end')-F('start')__gt=time_in_minutes) Is there a way of doing this without implementing a separate duration field

Kivy and Djangp

2015-05-13 Thread steven kyalo
Hello everyone, Am doing a mobile app using Kivy. The app should be getting some data from a server, for which i have used Django to develop the server side requirements. My problem is where do i put my Kivy scripts so that i can access the Django application web services. Which scripts of Dj

Re: Django project for multiple clients

2015-03-26 Thread Steven Nash
application > which isolate each tenant in it's own PostgreSQL schema. > > You could also build you own solution using a middleware and a database > router. > > Simon > > Le jeudi 26 mars 2015 12:23:38 UTC-4, Steven Nash a écrit : >> >> We are design a DJan

Django project for multiple clients

2015-03-26 Thread Steven Nash
We are design a DJango based application to be used my multiple clients. Each client will have there own database but share the same code base. In the past, when I've done something like this, I have configure a separate virtual host for each client. This time we are thinking about using URL r

[Job] CTO and Django developer required

2014-11-03 Thread Steven Davidson
at: https://yourinterest.com/jobs/ and you can contact us at conn...@yourinterest.com Thanks for reading and best wishes, Steven. Steven Davidson CTO (interim) YourInterest -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: How to generally handle exceptions in function based and class based views?

2014-11-03 Thread Steven Cummings
It sounded like you wanted to show something to the user, but don't keep the info from yourself as well (with respect to monitoring the site). So use the django messages framework to tell them something when wrong (not the exception details), or if you can't even render the attempted workflow then

Static Files not Loading

2014-07-30 Thread Steven Williams
yields a 404 error message. This is a development environment where I am just learning the framework using Tango with Django. My system is running Fedora 20 with Django 1.6 installed. This is my settings.py paste https://dpaste.de/pU40 Any help would be greatly appreciated. - -- Steven Williams

Best-practice for "join mailing list" form on every page

2013-08-20 Thread Steven Smith
I've got a simple form with one field that appears in the footer of my site, asking users to enter their email address to subscribe to our mailing list. Rather than duplicate the form-processing logic in every single view, what should I do? - POST to one location, but use a context processor to

Re: Design for storing likes/dislikes?

2013-07-19 Thread Steven Smith
I've used NullBooleanField for this before, as well. A lot quicker to query on than a ManyToMany, also. On Tuesday, July 16, 2013 9:24:54 PM UTC-4, donarb wrote: > > On Tuesday, July 16, 2013 5:29:47 PM UTC-7, Victor Hooi wrote: >> >> Hi, >> >> We have a list of users, who are going to like/di

Form Wizard: Redirecting back to a step from inside the done() method

2013-07-18 Thread Steven Smith
I have a form wizard that walks a user through some system configuration steps. In the done() method, the cleaned_data is used to call out to a configuration system to do various set/unset operations. Most of the time, the validation that I have built into my form classes is sufficient. However

Re: Setting Django to not quote table names

2013-03-05 Thread Steven Githens
Hi Shawn! Thanks for the clue. I commented out the following in oracle/base.py DatabaseOperations.quote_name and can get some tables showing up in the admin view now. ( More issues of course, but I believe them to be separate. ) # if not name.startswith('"') and not name.endswith('"')

Setting Django to not quote table names

2013-03-05 Thread Steven Githens
Hello Django Users, I have an app that uses Oracle and cx_Oracle for the db, and I've made the models from an existing schema with inspectdb. The database schema also contains a number of sub-schemas, so they must be accessed with schema dot table name. Looking at the SQL used for model acces

Using X-editable with Django?

2012-12-08 Thread Steven L
I am trying to get X-Editable inline editing of a model in Django. I am simply trying to change attributes of a model instance (in this case, the name of a Dataset object). Whenever I try to make the inline edit, I get an error that says that t

Re: Test driven development in Django framework

2012-09-08 Thread Steven Cummings
I think when people say "unit" tests to mean fully isolated tests, what they really mean is *whitebox* tests. You define the size of the unit under test and context runs from full isolation (whitebox test) to full integration/user-experience (blackbox test) -- Steven On Fri, Sep 7, 20

Re: is django too big for my use case?

2012-09-08 Thread Steven Elliott
I do not think your use case is too big for Django; you are only limited to your imagination and your knowledge of Python really. Check out Django Piston for RESTful APIs On Sat, Sep 8, 2012 at 4:05 PM, LuckySMack wrote: > I am currently st

Re: Can't Syncdb

2012-09-08 Thread Steven Elliott
What's the error message you get specifically On Sep 8, 2012 7:31 AM, "Kollin" wrote: > I create a project. I create app by name "app" in the project. The app > that : > app > __init__.py > models > __init__.py > a.py > b.py > but I can't syncdb the app. I use djan

Re: Step up to the plate

2012-09-06 Thread Steven Elliott
Hi alex I'm down as well email me at srichardelliot...@gmail.com On Sep 6, 2012 6:28 PM, "andrea mucci" wrote: > Hi Alex > > if you need some help contact me to and.mu...@gmail.com > > have a nice day > El 07/09/2012, a las 00:18, Alex Glaros escribió: > > *Dear Django Group, > > Can you spare

messages.sucess question

2012-09-04 Thread Steven Elliott
Hello, Is there an easy way to not display a success message as an unordered list? I have been looking high and low and for some reason cannot find an answer to this. Thank you! Best, Steven Elliott -- You received this message because you are subscribed to the Google Groups "Django

Re: Optimistic Locking in Django?

2012-06-30 Thread Steven Cummings
re 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 more options, visit this group at > h

Re: Optimistic Locking in Django?

2012-06-30 Thread Steven Cummings
top of that. It's kind of died out a bit, I'd like to get back to it and rekindle the discussion when I can find some time. -- Steven On Sat, Jun 30, 2012 at 5:24 PM, ydjango wrote: > > I did google search on "optimistic locking". Most discussion are very old. > &g

Re: How to adjust grid in Django Admin Forms

2012-03-26 Thread Steven
{ width: 8em; } but to no avail. Is there someplace else I should be looking?? On Mar 26, 10:21 am, akaariai wrote: > On Mar 26, 4:53 pm, Steven wrote: > > > > > > > > > > > I've just created a model in Django and want to use the admin form to > > ente

How to adjust grid in Django Admin Forms

2012-03-26 Thread Steven
I've just created a model in Django and want to use the admin form to enter information for it. The problem I'm having is that my field names are so long that they overlap the edit boxes where their values are to be entered. If one follows the tutorial in the Django website, it's as if the label "

Re: Weird problem generating forms on the fly

2012-03-09 Thread Steven Smith
I like it. Thanks, Tom! On Mar 9, 11:19 am, Tom Evans wrote: > On Fri, Mar 9, 2012 at 4:05 PM, Steven Smith wrote: > > I think I figured it out. My TYPE_MAPPING thing was causing the form > > fields to be initialized *once*. So, I made the contents of > > TYPE_MAPPING

Re: Weird problem generating forms on the fly

2012-03-09 Thread Steven Smith
I think I figured it out. My TYPE_MAPPING thing was causing the form fields to be initialized *once*. So, I made the contents of TYPE_MAPPING into strings, and I'm using eval(). Unless there's a better way, I'm leaving it like this in production :-) On Mar 9, 10:01 am, Steven Sm

Weird problem generating forms on the fly

2012-03-09 Thread Steven Smith
I have data that looks like this: formfields = [{'label': u'IP address of hacker', 'type': u'String', 'name': u'locationIp'}, {'label': u'Created end date', 'type': u'Date', 'name': u'createdEndDate'}, {'label': u'Created start date', 'type': u'Date', 'name': u'createdStartDate'}] I want to genera

Re: [pinax-users] Learning Django+Pinax - Recommend books and/or tutorials?

2012-01-27 Thread Steven Elliott Jr
ty. Also, I would really recommend going through the documentation for both Python and Django extensively, both are excellent. Cheers, Steven -- 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@

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread Steven Elliott Jr
On Jan 25, 2012, at 9:14 PM, JJ Zolper wrote: > > The keywords were 'in production'. The development server (i.e. python > > manage.py runserver) works fine under Windows. But when you want to > > make the website accessible to your audience (the internet, company > > etc.), you should host that

Re: Django for a large social networking or photo sharing site?

2011-11-22 Thread Steven Elliott Jr
Yes > Hello, > > [This is the first time I am using Google Groups and/or mailing lists, > so please bear with me if I do something wrong initially.] > > Is Django web framework apt for a large social networking or photo > sharing site? (Think one that has to easily and seamlessly scale to > the

Django FormWizard - How do you dynamically create a formset based on previous step

2011-11-17 Thread Steven Klass
Hi All, (Sorry for the cross post to Stackoverflow as well - I'm really pulling my hair out on this one!) Posted on http://stackoverflow.com/questions/8172398/django-formwizard-how-do-you-dynamically-create-a-formset-based-on-previous-st I've seen [this][1] post and it's not working (in part bec

Re: Sample Custom Decorator

2011-10-11 Thread Steven Cummings
apper Then just apply it as you did in your urls.py example. Hope this helps. [1] http://stackoverflow.com/questions/739654/understanding-python-decorators - A good starting point [2] http://micheles.googlecode.com/hg/decorator/documentation.html - A handy module and discussion of preserving func

Combining Querysets from different, but similar models

2011-10-05 Thread Steven Smith
I'm working on a site that has a requirement for a "recent activity" feed on the homepage. Usually, I'd just do a MyFoo.objects.order_by('- created') and all would be well. But "activity" is actually from several models. They all have some fields in common, like the timestamp, since they all have t

Re: installing django

2011-09-13 Thread Steven Elliott Jr
What exactly is the problem? Can you provide more detail? Platform, error messages, python version? What have you tried already? On Sep 13, 2011, at 1:21 PM, re64 wrote: > I am having trouble installing django. I cant seem to do it any > suggestions > > -- > You received this message becaus

Re: Django Development environment

2011-08-27 Thread Steven Elliott Jr
On Aug 27, 2011, at 11:17 AM, Simon Connah wrote: > > On 27 Aug 2011, at 04:44, Steven Elliott Jr wrote: > >>> On Fri, 2011-08-26 at 15:07 +0100, Simon Connah wrote: >>>> Mercurial or Git (depends on whether the project is open source or not) >> >> K

Re: Django Development environment

2011-08-27 Thread Steven Elliott Jr
> On Fri, 2011-08-26 at 15:07 +0100, Simon Connah wrote: >> Mercurial or Git (depends on whether the project is open source or not) Kenneth, I think he means whether or not the repository will be public or private. Github (git) does not offer private repos unless you pay whereas bitbucket (merc

Re: Django Development environment

2011-08-25 Thread Steven Elliott Jr
> Am 23.08.2011 00:07, schrieb Stephen Jackson: >> I am new to the world of Django. I would like to hear from other django >> developers describe their dev environment (tools, os, editors, etc.). Mac OS X Lion PyCharm and TextMate with Python competion and Django bundles Mysql & MongoDB South Pyg

Re: Most stable Linux distribution for Django - Python development

2011-08-02 Thread Steven Smith
We're using Gentoo 64-bit on all of our production webservers at work, and I run 4 additional Gentoo-based Django servers outside of work. It took a long time to configure, and is not for the faint of heart. But, my stripped-down versions of Apache and Postgres run really fast with a small memory

Accessing "request" from within an authentication backend

2011-07-26 Thread Steven Smith
Is there a way to access the HttpResponse, or issue a redirect from within a custom authentication backend? I have Django hooked up to our Active Directory server, and it works perfectly except when the user's password expires or they have "User must change password at next login" set on their acco

Re: Question about Displaying a Table

2011-06-27 Thread Steven Elliott Jr
Django has about the best documentation out there foe getting started. Walk through the tutorial and see how it goes. Sent from my iPhone On Jun 27, 2011, at 2:25 PM, "Cal Leeming [Simplicity Media Ltd]" wrote: > Forgive me but, the tone of this email sounds like you are asking us to do > th

Re: Returning a 503 response instead of a 500 response

2011-06-23 Thread Steven L Smith
Neat. I've been doing Django since the 0.9.6 days and have never written a middleware. I guess there's a first time for everything. Thanks! ======== Steven L Smith, Web Developer Department of Information Technology Services Nazareth College of Rochester 58

Returning a 503 response instead of a 500 response

2011-06-23 Thread Steven L Smith
ead of having to patch the actual django database backend code itself. ==== Steven L Smith, Web Developer Department of Information Technology Services Nazareth College of Rochester 585-389-2085 | ssmit...@naz.edu | KC2YTC http://www.naz.edu/pub/~ssmith46 ==

Intermittent OperationalError on multiple Django servers

2011-06-16 Thread Steven Smith
On two separate Django servers, I'm seeing variations on this error: File "/usr/lib64/python2.6/site-packages/django/db/models/sql/ compiler.py", line 731, in execute_sql cursor = self.connection.cursor() File "/usr/lib64/python2.6/site-packages/django/db/backends/ __init__.py", line 75, in

Re: GET vs POST for read-only views

2011-06-14 Thread Steven L Smith
such should always use GET, unless there's a truly compelling reason not to. POST should only be used for things that change stuff on the server... a contact form, a form that creates something in a database, etc... Cheers! -Steve Steven L Smith

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Steven Robbins
I agree with Shawn. Any powerful text editor you use will take time to get used to and customize for your purpose (in this case editing HTML and handling of django templates). Stick with one editor for a few weeks and decide what additional functionality you might need. Then do some searching based

Re: Modifying existing site

2011-05-26 Thread Steven Robbins
Hi Sach, I'd start by doing the following: - Install django on your laptop/desktop for testing You'll need python installed and if the following command doesn't work follow the steps in this document https://www.djangoproject.com/download/ easy_install django - Spend an hour going through th

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Steven Robbins
AJ, I found these videos to be quite useful when I was learning to use vim. http://vimeo.com/user1690209/videos Steve On 26 May 2011 04:32, AJ wrote: > Thanks a lot Simon. This is probably OT: > > That was helpful but I thought I could dive in again with Vim and failed > (at least for now). >

Re: How to setup the django progject to apache2

2011-05-01 Thread Steven Han
te using a2ensite follwed by the > name of your file, and I guess you should leave httpd.conf blank. > Regards, > George > > On May 1, 1:41 pm, Steven Han wrote: > > Hi, > > > > I want to develop Django on the Apache2 server. And I have follow the > some > &g

Re: How to setup the django progject to apache2

2011-05-01 Thread Steven Han
9000 ServerAdmin webmaster@localhost WSGIScriptAlias / /home/zikey/Workspace/Django/djcms/django.wsgi DocumentRoot /home/zikey/Workspace/Django/djcms AllowOverride None Order deny,allow allow from all 2011/5/1 Gianluca Sforna > On Sun, May 1, 2011 at 12:41 PM, Steven Han wrote:

Re: How to setup the django progject to apache2

2011-05-01 Thread Steven Han
no , I don't And I can use pythom manage.py runserver to run the project. But I just want to use the apache server. After installing the apache. I didn't modify any files except the httpd.conf file. 2011/5/1 Robbington > Bit confused matey, > > Do you have a domain name to serve those pages t

Re: How to setup the django progject to apache2

2011-05-01 Thread Steven Han
context_object_name='latest_poll_list', template_name='polls/index.html')), ) ##### 2011/5/1 Steven Han > Hi, > > I want to develop Django on the Apache2 server. And I have follow the some > instruction

How to setup the django progject to apache2

2011-05-01 Thread Steven Han
pplication = django.core.handlers.wsgi.WSGIHandler() ### But every time I run the URL http://127.0.0.1:9000 it always displays: "Oops! Google Chrome could not connect to 127.0.0.1:9000 " :( Do you know what I missed ? Br, Steven -- You received this message because y

  1   2   3   >