Re: how to setup LDAP authorisation in django/apache.

2008-09-15 Thread Joseph
with me) as you would need a email id in the AD server which has access to the root of the tree (depending on your requirement it might be the top most node; or it could be any other node as well). Good luck, Joseph http://www.jjude.com | http://twitter.com/jjude On Sep 15, 9:28 pm, PeteDK <[EM

Integrating Flexigrid (jquery)

2008-05-21 Thread Joseph
return HttpResponse(data, mimetype='application/javascript') when I view http://localhost/populategrid/ it shows the dict values; but the flexigrid doesn't show up any value. Can anyone help? Thank you all, Joseph http://www.jjude.com --~--~-~--~~~---~--~

dynamic filtering (with jQuery)

2008-05-23 Thread Joseph
lues - cep and publisher) Can someone give some helping hand? BTW; this is under windows/development server Thank you, Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: dynamic filtering (with jQuery)

2008-05-23 Thread Joseph
f I can debug jQuery and come back. In the mean time, if you have any other suggestion, feel free to let me know. Thanks, Joseph On May 23, 8:49 pm, Peter Rowell <[EMAIL PROTECTED]> wrote: > > However when I get the query from > > request.POST, it throws up server error (500). &g

Re: dynamic filtering (with jQuery)

2008-05-23 Thread Joseph
afraid that now it will not support unicode? Thanks Peter & Richard. Joseph On May 23, 11:29 pm, Peter Rowell <[EMAIL PROTECTED]> wrote: > > The debug information is available from firebug. You will see the reuest, > > right click on it and select 'Open in New Tab&#

Re: setup issues with Django

2008-05-25 Thread Joseph
There is instant Django: http://www.instantdjango.com/download.html No install. Just unzip and it works well. then you can update your copy of Django as well. Works well for me. Joseph http://www.jjude.com On May 25, 6:35 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sun

Re: Start server

2008-06-17 Thread Joseph
Molly: When you get through, mind if you could share the code? Thank you, Joseph http://www.jjude.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Attribute Error: 'NoneType' object has no attribute 'get_field_sets'

2008-06-18 Thread Joseph
the components. But you will succeed in the end. Good luck, Joseph http://www.jjude.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: CMD output

2008-06-28 Thread Joseph
lso do some.exe > some.log so that the error messages are sent to the log file. Regards, Joseph On Jun 27, 8:28 pm, Molly <[EMAIL PROTECTED]> wrote: > What if the exe is just clicked on though, then there wouldn't be any > writing in the cmd to write that. > > Thanks for

how to create a custom django template filter(please help)

2010-07-26 Thread Joseph
i also do this {% load customTags %} in the index.html but there is some wrong occur TemplateSyntaxError: 'customTags' is not a valid tag library: Could not load template library from django.templatetags.customTags, No module named customTags if u know please tell me tks Joseph

Re: how to create a custom django template filter(please help)

2010-07-26 Thread Joseph
tks Joseph On Jul 26, 9:04 pm, Daniel Roseman wrote: > On Jul 26, 1:56 pm, Joseph wrote: > > > > > > > hi > > im a newbie if u know please answer me > > i just follow steps of django   > > websitehttp://www.djangoproject.com/documentation/0.96/templates_pyt

Re: how to create a custom django template filter(please help)

2010-07-26 Thread Joseph
thanks , but still doesnt work.. On Jul 27, 8:48 am, Karen Tracey wrote: > On Mon, Jul 26, 2010 at 9:18 PM, Joseph wrote: > > hi > > the level of directory(named templateTags) is same with the model.py > > and main.py > > and i put both __init__.py customTags.py and u

Re: how to create a custom django template filter(please help)

2010-07-26 Thread Joseph
hi all thanks for answering my question i already found the answer just dont do this it will work {% load customTags %} tks Joseph On Jul 27, 8:59 am, Joseph wrote: > thanks , but still doesnt work.. > > On Jul 27, 8:48 am, Karen Tracey wrote: > > > > > On Mon,

Re: Great article about web2py

2008-04-29 Thread Joseph
With respect to using py2exe to compile Django app, refer these two: http://www.jjude.com/index.php/archives/70, ideas which I borrowed heavily from http://www.silverstripesoftware.com/blog/archives/51 Ofcourse I didnt compile the templates. Joseph On Apr 29, 9:14 pm, mdipierro <[EM

Re: ModelForm, one form, two models

2008-09-22 Thread Joseph Kocherhans
. You aren't reinventing the wheel. There isn't code in Django to do what you're trying to do. If you really feel like you need to write some sort of wrapper for this, I'd suggest keeping the case you deal with down to a simple situation: 1 child object with a OneToOneField o

admin js not executing

2009-08-26 Thread Joseph Brown
I'm having trouble getting the admin javascript to function in production (debian/apache2). I've tried creating a sybolic link in the django root folder, and using a location Alias in apache, but the result is the same. Admin css files load, images load, and you can view the js files, but they do

admin javascript not working

2009-08-26 Thread Joseph Brown
I'm having trouble getting the admin javascript to function in production (debian/apache2). I've tried creating a sybolic link in the django root folder, and using a location Alias in apache, but the result is the same. Admin css files load, images load, and you can view the js files, but they do

hacking django-comments timestamp input - 400 error

2009-08-31 Thread Joseph Brown
Hello, A user on my site recently complained to me about getting a 405 error after slavishly writing a 15 minute comment - losing all they had written! I looked into the server logs and saw a 400 followed by a 405 error, and I'm guessing it was the timestamp input: "The timestamp is used to ensu

Re: Display only some tables

2008-05-31 Thread Joseph Heck
Hey Kless, I think you need to be a bit clearer on your question. What are you trying to accomplish? On Sat, May 31, 2008 at 11:47 AM, Kless <[EMAIL PROTECTED]> wrote: > > How to show only any tables to any users -as to the visitors-? > > > --~--~-~--~~~---~--~~

Re: Change the model name

2008-05-31 Thread Joseph Heck
If you're talking about changing the display name in the administrative interface, there is the option of setting "verbose name" - see http://www.djangoproject.com/documentation/model-api/#table-names for more information. You can also change the database table name associated with the model objec

Re: asynchronous operations

2008-07-07 Thread Joseph Heck
Look into using a queue system of some form. Django-queue-service (http://django-queue-service.googlecode.com/) was developed to enable this but there's similiar mechanisms in use through many sites. Either developed internally, or using heavier-duty queuing mechanisms. -joe On Mon, Jul 7, 2008

Re: Overriding save_add/save_change fails when using NFA?

2008-07-22 Thread Joseph Kocherhans
e "model" > parameter in the "save_add" method. > > Anyone else agree? Yeah, the HOWTO is wrong. I removed the model argument from the parameters list last week because it is accessible via self.model. I think passing it around was something that was carried over from mu

Re: ModelForm, one form, two models

2008-09-10 Thread Joseph Kocherhans
your view. If you have something like this: if user_form.is_valid() and profile_form.is_valid(): # save stuff and user_form.is_valid is False, profile_form.is_valid() won't be called. I usually write a function called all_valid(list_of_forms) tha

Apache, 404'ing FlatPages, and SITE_ID's

2009-05-26 Thread Joseph Brown
Hi, I'm looking for some help getting Apache running correctly with FlatPages, as well running with multiple sites on the same server. First the FlatPages problem. Everything's fine on my dev box (WinXP), but on my production box (Debian) the Flatpages only work when running the django testing se

Re: how to override ordering in date-based generic views

2009-06-11 Thread Joseph Brown
Hi Justin - Thanks & sorry I missed your email until just now. I did try that, and it's interesting: it worked for any of the date based generic views that took a datepart parameter in the url, i.e. archive_year, archive_month, and archive_day. But archive_index just ignores it. Also tried addin

Re: can you have a flatpage with url of "/" when Debug=True?

2009-06-15 Thread Joseph Brown
Well I'm flummoxed. After reading your post I retested on my dev site, and the problem has vanished. Then I tried on production and same thing, it's gone! I do have custom 404 and 500 templates. All I can figure that might have changed is the file ownership - I'm using subversion and might have

Sites module, URLs and templates

2009-10-02 Thread Joseph Wakeling
Hello all, I'm making some first steps with Django having worked my way through the tutorial. I'm finding myself somewhat confused by the sites module. I would like to run two or three different sites. It's trivial to 'create' them using the admin interface, and it's clear how different object

Re: Sites module, URLs and templates

2009-10-07 Thread Joseph Wakeling
On Oct 4, 2:39 pm, Kristaps Kūlis wrote: > Hi! >  You can make settings for each site easily > first_settings.py > from settings import * > SITE_ID = 1 > TEMPLATE_DIRECTORIES = ( [ ] ) > [ other settings, which needs to be overrided ] > > you can also override urls, etc with revelant settings.

Changing order in which inlines are displayed in Admin

2009-11-12 Thread Joseph Wakeling
Hello all, A little query I haven't been able to find an answer to in docs or through Google. I've got a little app on my site to create menus -- it's adapted (updated to latest Django) from the menu app described at rossp.org. Anyway, here are the classes defined in admin.py: #

Re: Hosting for django?

2009-12-24 Thread Joseph Wolff
Sorry about the multiple posts, my new Macbook (I'm just setting it up - I'm normally a Linux desktop person :) has a different email than I had used to register with the django-users group, and I kept getting undelivered-mail rejections from Google - I didn't realize it posted anyway - sorry. Joe

Re: Many to many fields to string

2010-08-11 Thread Joseph Spiros
Er, I forgot to add an {% endwith %} at the end. You don't HAVE to use the with tag at all, but it can make things a bit easier. On 8/11/10 6:18 PM, Joseph Spiros wrote: > You'll want to loop through the objects and print the appropriate > property of the objects that consists

Re: Many to many fields to string

2010-08-11 Thread Joseph Spiros
o return just a string of the names? > I'm still getting acclimated to python syntax. > > Actually in a perfect world, it would be great to concatenate the > names, and add an 'and' b4 the last one, I imagine this is done > frequently? > > Thanks, > Wendy >

Re: 'ValidationError' object has no attribute 'message_dict'

2010-02-09 Thread Joseph Kocherhans
o, looking at the existing tests for > model validation might reveal a way that your code could be made to work. This one is at the top of my list, and the biggest reason I haven't fixed yet is a lack of tests. I'll get to it pretty quickly (probably tonight) if someone else

Re: 'ValidationError' object has no attribute 'message_dict'

2010-02-09 Thread Joseph Kocherhans
ded below. Am I doing > something wrong or is it bug no http://code.djangoproject.com/ticket/12698? Fixed in http://code.djangoproject.com/changeset/12402 Joseph -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

How to get hold of a (database) connection from within a thread

2010-11-04 Thread Joseph Wayodi
? Alternatively, how can I get a list of all the open connections that Django is using at any one time. I am using the "standard" model query API, and not executing custom SQL directly. Thanks, Joseph. -- You received this message because you are subscribed to the Google Groups "Django u

Re: How to get hold of a (database) connection from within a thread

2010-11-04 Thread Joseph Wayodi
en connections > that > > Django is using at any one time. I am using the "standard" model query > API, > > and not executing custom SQL directly. > > Hi Joseph, > > I use simple: > > >>> from django.db import connection > >>> connect

Including other fields in Admin interface

2011-04-05 Thread Joseph Hunt
Greetings, I'm sure there is a simple solution to what I'm trying to do but unfortunately I wasn't able to find it in the documentation. I have the following model (simplified version shown): class Student(models.Model): student_id = models.IntegerField(primary_key=True, unique=True, db_i

Re: Admin Interface Super User Not Logging In

2011-04-13 Thread Joseph Hunt
If you're running the "testserver" it's not using the database, you'll want to try "runserver" instead. -- 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

Re: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-24 Thread Daniel Joseph
I will like to join Number:08166262610 On Sun, 18 Feb 2024, 5:48 pm SURAJ TIWARI, wrote: > 🚀 Join Our Django WhatsApp Bulk Messaging Project! > > 👋 Hello everyone, > > Are you looking for an exciting opportunity to gain hands-on experience in > Django development? Do you want to work on a meanin

Re: Django bugfix releases issued: 4.2.12 and 5.0.5

2024-06-10 Thread Joseph Aidoo
Am Joseph from Ghana and i want us to be friends On Mon, 10 Jun 2024, 10:24 Joseph Aidoo, wrote: > Hello miss Sarah > > On Mon, 6 May 2024, 19:41 Sarah Boyce, > wrote: > >> Details are available on the Django project weblog: >> https://www.djangoproject.com/weblog/

Re: Django bugfix releases issued: 4.2.12 and 5.0.5

2024-06-10 Thread Joseph Aidoo
Hello miss Sarah On Mon, 6 May 2024, 19:41 Sarah Boyce, wrote: > Details are available on the Django project weblog: > https://www.djangoproject.com/weblog/2024/may/06/bugfix-releases/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: Reactive frontend + Session Authentication (+ csrf ?)

2024-07-08 Thread Joseph Aidoo
Am a computer science student and am very proud of the content you share On Mon, 1 Jul 2024, 22:36 Joseph Aidoo, wrote: > Pls good afternoon sir pls can i have you WhatsApp line > > On Mon, 20 May 2024, 15:10 zvo...@seznam.cz, wrote: > >> With traditional frontend (like re

Re: Contract Full Stack Django Engineer

2024-07-08 Thread Joseph Aidoo
Pls can someone help me here On Wed, 26 Jun 2024, 23:28 'Bernard Mallala' via Django users, < django-users@googlegroups.com> wrote: > About Project: > > I am bootstrapping a data-heavy AI-enabled system tailored for early > adopters and looking for a seasoned Django Python Engineer with a strong

Re: Reactive frontend + Session Authentication (+ csrf ?)

2024-07-08 Thread Joseph Aidoo
Pls good afternoon sir pls can i have you WhatsApp line On Mon, 20 May 2024, 15:10 zvo...@seznam.cz, wrote: > With traditional frontend (like realized with Django templates), the user > will GET the login form and in this step Django sends csrf token. Later, in > 2nd step, you send credential an

Re: How to import UGETTEXT_LAZY ON DJANGO 4.0

2024-08-29 Thread joseph Nwani
please I change all my ugetext_lazy to gettext_lazy and am still getting the same error please how can you help me. On Friday 10 December 2021 at 18:46:41 UTC+4 Jason wrote: > > https://docs.djangoproject.com/en/4.0/releases/3.0/#id3 > On Friday, December 10, 2021 at 12:01:03 AM UTC-5 ngal...@gm

Possible bug in the Django documentation

2012-05-14 Thread Joseph Mornin
Hi, I noticed a possible bug in the Django documentation. The authentication docs (at https://docs.djangoproject.com/en/dev/topics/auth/) include this sample code for registration/login.html: http://dpaste.com/747993/ Running this code gives me this error: ### TemplateSyntaxError at /login Caug

Re: Possible bug in the Django documentation

2012-05-14 Thread Joseph Mornin
Ah. I didn't notice that I was using the dev documentation. Thanks! On 5/14/12 10:04 AM, Alasdair Nicol wrote: Hi Joseph, On 14/05/12 14:26, Joseph Mornin wrote: Hi, I noticed a possible bug in the Django documentation. The authentication docs (athttps://docs.djangoproject.com/en/dev/t

Re: Django Projects in Gedit

2011-09-07 Thread Joseph Slone
go 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 > http://groups.google.com/group/django-users?hl=en. >

TransactionMiddleware recommendation

2011-09-21 Thread Joseph Mou
I saw that the docs recommend using TransactionMiddleware, even though it's not the default: https://docs.djangoproject.com/en/dev/topics/db/transactions/ Why is this preferable over the default auto-commit behavior? I wasn't able to find much more information when searching (mostly just bug repor

Re: Web Designer

2011-09-26 Thread Joseph Slone
l for any ideas > > Thanks! > > -- > 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 > dj

Re: how to use asyncore socket in django views.py

2011-12-27 Thread Joseph Slone
?? >>> >>> thanks >>> >>> >> -- >> *Vovk Donets* >> python developer >> >> skype: suunbeeam >> icq: 232490857 >> mail:donets.vladi...@gmail.com >> www: jetfix.ru >> >> > > > -- &g

Re: Packaging and transferring code

2012-02-14 Thread Joseph Student
Thanks, Chris. We'd be looking to redevelop the framework a bit before we installed. I believe the system has a Python Lib directory included. Essentially, we're looking to use a modification of the existing code to build another site. On Tue, Feb 14, 2012 at 5:37 PM, Chris Czub wrote: > That r

Re: authenticate=None mistery: can't authenticate from the web but it works from the command line

2012-08-19 Thread Joseph Mutumi
Hello, I believe its a simple typo! authenticate(user=usuario, password=clave) should be authenticate(username=usuario, password=clave) Regards On Sun, Aug 19, 2012 at 3:35 PM, Jorge Garcia wrote: > Hi there. Im doing my first login form for an existing Django application. > The thing is tha

Re: How to use Django with Apache and mod_wsgi

2012-08-19 Thread Joseph Mutumi
Hello, Could you post the VirtualHost configuration for Apache? That would greatly help us help you. Regards On Mon, Aug 20, 2012 at 12:30 AM, Seyfullah Tıkıç wrote: > Hello, > > I read the article below. > https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/ > > But still http://lo

Distinct Values in ModelChoiceField

2012-08-19 Thread Joseph Mutumi
Hello, I have a model that has a foreign key field that I want to use in a form as a select box. That particular field at times appears multiple times in the database. How do I make it only have distinct values? This is a snippet, drop down will have repeated values if same color is entered: cla

Re: How to use Django with Apache and mod_wsgi

2012-08-20 Thread Joseph Mutumi
0, 2012 11:30:49 AM UTC+2, stikic wrote: > >> httpd.conf file is in the attachment. >> >> 2012/8/20, Joseph Mutumi : >> > Hello, >> > >> > Could you post the VirtualHost configuration for Apache? >> > That would greatly help us help you. >&

Re: Distinct Values in ModelChoiceField

2012-08-23 Thread Joseph Mutumi
@Melvyn Thank you. It actually worked out as you said. It needed a redesign. On Wed, Aug 22, 2012 at 1:44 PM, Sithembewena Lloyd Dube wrote: > @Melvyn, thanks - that makes sense. > > > On Wed, Aug 22, 2012 at 3:18 AM, Melvyn Sopacua wrote: > >> On 22-8-2012 3:04, Sithembewena Lloyd Dube wrote: >>

Re: What happens when you use ``select_for_update`` with ``select_related``?

2012-08-23 Thread Joseph Mutumi
I'm not sure but you can look at the generated query and post it to the relevant database mailing list? Go in through: manage.py shell then follow instructions in FAQ https://docs.djangoproject.com/en/dev/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running On Mon, Aug 20, 2012 at 6:0

Re: ModelMultipleChoiceField with MultiWidget ?

2012-08-26 Thread Joseph Mutumi
Disclaimer - I have never done this before! >From what I see I reckon you will need to create both a custom field and a custom widget! I think so because if you have TextInputs validation may fail on the ModelMultipleChoiceField? I would think you need to override the methods: __init__, clean, to

Dependent Ajax Form Fields

2012-08-26 Thread Joseph Mutumi
Hello, If A is a model with ForeignKey relationships to B. What would be the best way of rendering two selectboxes, A and B. The values of B are the values filtered through using the relationship with the selected value of A via an AJAX call. I need to get these values from the DB as well as have

Re: Dependent Ajax Form Fields

2012-08-27 Thread Joseph Mutumi
Thank you for the help! On 8/27/12, Jani Tiainen wrote: > 26.8.2012 21:54, Joseph Mutumi kirjoitti: >> Hello, >> >> If A is a model with ForeignKey relationships to B. What would be the >> best way of rendering two >> selectboxes, A and B. The values of B are the

Re: Problem serving files from media directory

2012-08-28 Thread Joseph Mutumi
Hi, Django isn't responsible for serving any kind of static files in production. It is not a web server ! You need to configure the web server you are using to serve the files in that folder. The documentation has a good example conf for Apache: https://docs.djangoproject.com/en/1.4/howto/deployme

Re: form doesn't validate when trying to upload file

2012-09-09 Thread Joseph Mutumi
I'm assuming you are using the forms.ModelForm for your model? Say LicenceForm? class LicenseForm(forms.ModelForm): class Meta: model = License According to the doc you have to pass all relevant QueryDicts to the form __init__ when you are creating a bound instance. In a nutshell make

Re: Submitting data from a form

2012-09-14 Thread Joseph Mutumi
Hi, Let me give you a code sample that would be hopefully a push in the right direction. Simply follow these steps: 1. Create your model. Its the code interface to your data source (database) 2. Create your form. Forms are used for processing input data (validation, error reporting et

Re: Create table and load data

2012-10-11 Thread Joseph Wayodi
d. What am I doing wrong? > According to the docs [1], you may need to install PyYAML: <http://pypi.python.org/pypi/PyYAML>. [1] <https://docs.djangoproject.com/en/1.4/topics/serialization/#serialization-formats> Joseph. -- You received this message because you are subscribed to the

Re: has_perm returns wrong value

2012-11-14 Thread Joseph Mutumi
I believe default permissions created are: add_*, change_* and delete_*. And the format for a permission would be something like: *app_name*.add_* model_name* So what happens when you try: user.has_perm('structures.add_post') user.has_perm('structures.change_post') If you are registering your ow

Re: Escape percent sign in QuerySet.extra()

2012-12-02 Thread Joseph Mutumi
I think to escape a % use %% On Sun, Dec 2, 2012 at 1:16 PM, Martin Svoboda wrote: > Hi, > I want use postgresql pg_trgm module in django. pg_trgm defines special > operator percent sign. How should I escape it in django query extra method? > > # Pure SQL > SELECT content, similarity(content, 'te

Re: Escape percent sign in QuerySet.extra()

2012-12-02 Thread Joseph Mutumi
Sorry I hadn't seen your comment, have you tried %%% ? On Mon, Dec 3, 2012 at 7:28 AM, Joseph Mutumi wrote: > I think to escape a % use %% > > > On Sun, Dec 2, 2012 at 1:16 PM, Martin Svoboda > wrote: > >> Hi, >> I want use postgresql pg_trgm module

Re: HTML Source on Browser Rendering

2013-01-06 Thread Joseph Mutumi
Hello, I think you should also check the 'Content-Type' being received client-side in the HTTP headers. You can use something curl or Firebug. On Sun, Jan 6, 2013 at 1:40 PM, Ryoichiro Kamiya wrote: > Hi, > > I'm testing Django template rendering in development environment, but one > of the pag

Adding a summary column in a view

2013-05-13 Thread Joseph Osako
I am currently working on a site where there are several models which do not have immediate views, but rather are attached to other models via foreign keys. I need to prepare a view in which the data of these models (or rather, their underlying tables) are summed and presented in several column

Re: looking for an apache/system admin master

2013-06-18 Thread Joseph Mutumi
If they are requesting urls that do not exist why are you worried? Just block that IP address in the vhost configuration and continuously monitor the server for strange or unexpected traffic. You can look into something like munin or graphite. On Tue, Jun 18, 2013 at 8:26 PM, MattDale wrote: >

Re: Mysterious error messages

2013-09-23 Thread Joseph Mutumi
Don't use Satchmo but looks like `shop_config` is not defined when you context_processors are called? This is because from it looks like it gets the shop_config based on the current site based on the host. If the domain name saved in the admin for the site corresponding to the SITE_ID in your sett

Using PythonAnywhere, Django, Github, and MySQL

2016-11-21 Thread Alexander Joseph
Hello, I am newly learning django, and have decided to use pythonanywhere and github for publishing/hosting my apps. I've been using php and mysql for a few years and like mysql. But I need some help with the initial setup so that everything works/clones smoothly between my app on my local compu

File/Folder Sync API?

2016-12-28 Thread Alexander Joseph
I'm building a collection of apps that write custom .docx and .xlsx files, and store them to a users account. These files need to be in a specific hierarchy and each user will have their own files/folders they can view and edit. It would really be great if I could allow each user to sync their

Re: File/Folder Sync API?

2016-12-29 Thread Alexander Joseph
rres-marroquin/django-dropbox > > > 2016-12-28 12:15 GMT-06:00 Alexander Joseph > : > >> I'm building a collection of apps that write custom .docx and .xlsx >> files, and store them to a users account. These files need to be in a >> specific hierarchy and each u

Re: Email Templates and the full website URL

2013-11-29 Thread Joseph Mutumi
That could work but isn't it a bit insecure? I think it will be susceptible to a header injection(http://en.wikipedia.org/wiki/HTTP_header_injection). I would rather create a setting with the domain name in settings.py and then call it from the template or write a custom template tag. On Fri, Nov

Re: Filtering by month doesn't work

2013-11-29 Thread Joseph Mutumi
I think the model is not being saved because no instance is being constructed by the form. Either make call to event_form.is_valid() of event_form.full_clean(), the former being preferred. On Tue, Nov 26, 2013 at 8:30 PM, Leonardo Giordani < giordani.leona...@gmail.com> wrote: > Are you sure tha

Re: Email Templates and the full website URL

2013-12-03 Thread Joseph Mutumi
gt; generated and sent in a view function I have. So, how will the http header > get inserted in this flow ? > > Vibhu > > > > On Fri, Nov 29, 2013 at 7:39 PM, Joseph Mutumi wrote: > >> That could work but isn't it a bit insecure? I think it will be >> suscepti

Re: How to get database data into a template sidebar

2013-12-03 Thread Joseph Mutumi
Some of the options you have are: 1) CBVs 2) custom template tags: https://docs.djangoproject.com/en/1.5/howto/custom-template-tags/ 3) template preprocessors: https://docs.djangoproject.com/en/1.5/ref/settings/#template-context-processors On 12/2/13, Drew Ferguson wrote: > Hi > > I am not really

Re: Ajax post problem

2014-04-17 Thread Joseph Mutumi
You could try using $("form").serialize() to get the form inputs in the ajax data. But from the URL it looks like your HTML is somehow rendering badly. The form action is coming out as '/newmarkets/search/ method=' Kind regards On 4/17/14, willyhakim wrote: > Hi everyone? > > I am trying to use

Re: Order_by on queryset from chained filters not working

2014-04-24 Thread Joseph Mutumi
Just wondering why not cases = cases.order_by('case_number') ? On 4/24/14, Shawn H wrote: > I've a search page that allows users to search for a "ZoningCase" by many > different parameters, some from the ZoningCase object and some from several > > related objects. The user can combine 1 or more

Re: Django ユーザー登録について

2014-04-27 Thread Joseph Mutumi
Hi there, I think your problem is you have not initialized attendance that you use at `instance = attendance`. So it is just using the name of your view function which also happens to be 'attendance' and showing you that error. Initialize to model object with the usual: Attendence_data.objects.get

Re: Django app and a submodule name conflict

2014-06-04 Thread Joseph Catrambone
It may be worth trying a relative import, depending on which version of Python you're using. I believe you can do "from .B.models import BModel". Note the '.' full-stop/period before the module. I can't promise that will fix your problem, as the layout isn't entirely clear to me, but it migh

Re: Problem when getting the ID of the record just created

2014-10-13 Thread Joseph Mutumi
Should get the flow instance from the form.save() so: user = User.objects.get(pk=self.request.user.id) flow = form.save() log = Log(user=user, flow=flow, state=1) On Mon, Oct 13, 2014 at 4:13 PM, Daniel Grace wrote: > Hi, > I have problem when getting the ID of the record just created. > > clas

entering data directly into a postgreSQL database

2014-10-18 Thread Jon Joseph
uot;value too long for type character varying(10)" from the PostgreSQL COPY command. Any ideas, any more information needed? Thanks, Jon Joseph josco@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Bristol (UK) startup seeks awesome Python/Django engineer

2014-12-30 Thread Joseph Edwards
## Summary Small startup in Bristol currently looking for an awesome software engineer to work on our existing code base. Ideally you'd be located in Bristol/Bath and be able to work from our office, or be able to visit our offices on a weekly basis, but remote/home working is also negotiable.

Re: Time out when requesting element from Admin

2015-11-14 Thread Joseph Wenninger
get for either a ForeignKey orManyToManyField: Best regards Joseph Von meinem iPhone gesendet > Am 14.11.2015 um 08:14 schrieb Joakim Hove : > > knees? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

TemplateSyntax Error - Invalid block tag '

2016-05-29 Thread Joseph Mitchell
Hi, newbie here. While going through https://docs.djangoproject.com/en/1.9/intro/tutorial03/ and I get the following: TemplateSyntaxError at /polls/ > Invalid block tag on line 23: ' or load this tag? My templates/polls/index.html file has: {% *if* latest_question_list %} > > <*ul*> >

Re: django-queue-service documentation

2008-01-27 Thread Joseph Heck
Sorry for the lack of docs - I think we've all been focused elsewhere, and the project is being somewhat quiet right now. Do you want to integrate it into your application directly, or use it as a standalone critter? What kind of information on using it would be most useful to you? I've got some

Re: django-queue-service documentation

2008-01-30 Thread Joseph Heck
gt; creating a empty directory or by cloning an existing one. When > cloning a repo, after saving, a post_save signal calls mercurial's > hg.clone function, and the screen waits until this is done, which can > be a while for larger repos, or one on slower servers. > > I

Re: django-queue-service documentation

2008-01-30 Thread Joseph Heck
I'm always willing to take suggestions. We've expanded on the basics in the "unstable" branch - mostly focusing on adding a pure REST interface, which Rajesh has done a wonderful job with. It does have it's own settings when using it standalone - it's a pretty straight-up Django application that w

Re: django-admin.py just doesn't go

2008-02-15 Thread Joseph Heck
Need just a little more information... First - what platform are you working on? Second, how did you install django? It might be as simple as needing to set some execute permissions (linux or Mac), bind .py to a specific program (win), or just have you invoke "python django-admin.py" to work aro

Re: django runserver freeze after 10-15 min

2008-02-16 Thread Joseph Heck
The link to Gordon's page is much nicer than the hackery I did some time back, but I thought I'd pipe in with a comment that the WSGIServer from CherryPy works very nicely. We've embedded it into our Django Queue Service project (I yanked the WSGIServer directly - didn't need the rest: http://code

Re: django-admin.py just doesn't go

2008-02-16 Thread Joseph Heck
Johan is right on - it sounds like all you need to do it get django-admin.py on your path. -joe On Feb 16, 2008 7:35 AM, Johan Liseborn <[EMAIL PROTECTED]> wrote: > > On Feb 16, 2008 1:46 PM, doNascimento <[EMAIL PROTECTED]> wrote: > > I'm on mac OS X (10.4) > > Installed the official release (0

Re: "Presales" questions

2008-02-16 Thread Joseph Heck
There isn't a visual interface for creating new fields, but don't let that stop you. It is really very straight forward and well documented. If you don't own the printed version of the django book, I'd recommend hitting their web site and reading or at least glancing through Chapter 5 (http://djan

Re: django runserver freeze after 10-15 min

2008-02-16 Thread Joseph Heck
Mark was also the one who got me working it. :-) At OSCON 2007 as well... On Feb 16, 2008 12:47 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Sat, 2008-02-16 at 12:43 -0800, Joseph Heck wrote: > > The link to Gordon's page is much nicer than the hackery I d

Re: Django hosting service running Os C

2008-02-20 Thread Joseph Heck
For something as specific as MacOS X based hosting, that's a damn good price. -joe On Mon, Feb 18, 2008 at 7:35 AM, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > > On Feb 17, 2008 3:12 PM, Flavio Curella <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I developed a small application using django

Re: How/where do you add middleware (was: empty PATH_INFO with LiteSpeed / FastCGI)

2008-02-20 Thread Joseph Heck
Austin, There's an excellent overview of the how's and why's of Middleware at http://www.djangoproject.com/documentation/middleware/ Fundamentally, you're just specifying a class that you've implemented somewhere. It can be in a folder or not - that's just matching python's module structure to t

Re: Showing day in html but cannot check the day on django

2008-03-25 Thread Joseph Heck
Python has a number of good date/time packages that you can use to do this... why don't you look into one of those. -joe On Tue, Mar 25, 2008 at 12:53 AM, soe <[EMAIL PROTECTED]> wrote: > > Hi all, > I would like to check the current day on the django not on html, mean > today is monday or t

Re: unit testing Q

2008-03-25 Thread Joseph Heck
Absolutely - the "making a seperate DB" is all wrapped in "django-admin.py test" or "./manage.py test" - which does a number of things for you. You don't have to use that at all - and just running standard python unit tests will work against your system. You'll need to set up your environment to u

  1   2   3   4   5   6   7   >