Re: Django asychronous for millions of users

2021-04-01 Thread Josh moten
about load balancer and cacheing. Thank you so much Sent from my iPhone > On Apr 1, 2021, at 11:17 AM, Samuel Smith wrote: > > On 3/30/21 6:32 AM, Josh moten wrote: >> I am creating an auction that will be hosting millions to possibly billions >> of users so I am tryin

Re: Django asychronous for millions of users

2021-03-31 Thread Josh moten
rse without any cost, because we are > just having a beer or any other beverage of your liking. Just send me a mail > privately and we'll find an appointment > > Am 31.03.21 um 18:09 schrieb Josh moten: >> I truly would love to do that but I know I do not have the funds to hire

Re: Django asychronous for millions of users

2021-03-31 Thread Josh moten
this is a way that you could >> familiarize yourself well with. >> >> As often in IT there are now real "right" choices, only choices that will be >> right for you and your usecase. >> >> Cheers >> >> Lars >> >> Am 31.03

Re: Django asychronous for millions of users

2021-03-30 Thread Josh moten
, so that proper load balancing will be in place. I am also looking up cacheing as well Sent from my iPhone > On Mar 30, 2021, at 7:13 PM, Lars Liedtke wrote: > >  > Hello Josh, > > somehow this sounds a bit sketchy to me. Could you please extend your request > to your

Django asychronous for millions of users

2021-03-30 Thread Josh moten
I am creating an auction that will be hosting millions to possibly billions of users so I am trying to figure out which would be the best library to use for scalability at a rapid pace. I am positive to reach a million users in four months. What is the best library and/or package to us for over

Re: Please help. ImportError with django 3.1

2021-01-04 Thread Josh Raj
hello is ur app name if so from hello import views try this if not be clear what is hello,index On Mon, Jan 4, 2021 at 4:24 PM Gasar Iyali wrote: > Hi > Please I need your help. > I have just installed django and when I try to run django I get this error > message and nothing comes up in my brow

Re: Django Group Project

2020-08-17 Thread Josh Raj
Yes I am interested On Sun, Aug 16, 2020, 20:45 Lokesh Kumar wrote: > Excited to work with you people...! > > On Sun, Aug 16, 2020 at 9:11 PM Mbah Victor > wrote: > >> hi guy's am victor by name am from african and am new to Django hope i >> can use it for my backend i mean the programming lang

Re: collaborate to do a project for beginners

2020-08-12 Thread Josh Raj
I am also interested I have some experience please add me 60922557 I have some ides to share On Wed, Aug 12, 2020, 18:29 Ibrahim Sena wrote: > Hi, > > I am Sena from Ghana and a beginner in django framework am also interested. > > +233509391326 > > Regards > > > On Mon, 10 Aug 2020, 11:42 narend

Re: Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-04-03 Thread Josh Marshall
OK, I've gotten time to touch the code again, applied your suggestion, but there is no apparent change in behavior. For the sake of argument, I'm including the stack trace again. I'm not sure where my good debugging entry point is here. -- You received this message because you are subscribed

Re: Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-04-01 Thread Josh Marshall
.. > > On Sunday, 31 March 2019 04:31:42 UTC+2, Josh Marshall wrote: >> >> I'm helping out on a project, but am running into a paradox of a bug must >> existing in the code, but no project code is called. Not sure how to deal >> with this one. It looks

Re: Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-03-31 Thread Josh Marshall
Identical behavior. On Sunday, March 31, 2019 at 12:42:17 AM UTC-4, jlgimeno71 wrote: > > > On Sat, Mar 30, 2019 at 7:31 PM Josh Marshall > wrote: > >> I'm helping out on a project, but am running into a paradox of a bug must >> existing in the code, but no proje

Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-03-30 Thread Josh Marshall
I'm helping out on a project, but am running into a paradox of a bug must existing in the code, but no project code is called. Not sure how to deal with this one. It looks related to URL setup and the urls.py file is practically identical to the examples. Can anyone make sense of this stack

Re: Testing a Django library

2017-03-23 Thread Josh Crompton
There's no Django community standard of which I'm aware for doing this. There *is* a standard way to run tests for Python projects which use setuptools (which yours should do if you want people to be able to `pip install` it) [1]. I usually do something like this blog post describes [2]. Or, y

The Photo could not be created because the data didn't validate.

2016-09-20 Thread Josh Houghton
I'm currently trying to allow users to upload photos to my site. They will be sent to /upload to upload a photo which will (if the upload is successful) take them to /edit/ where they will enter the name and tags to the photo. However, when I upload a 3.6MB .jpg to the site, I keep getting the

Re: django in docker

2016-07-05 Thread Josh Crompton
Rather than making everything world-readable, I usually create a user and chown all the directories to that user. Can you post your Dockerfile? On Wed, Jul 6, 2016 at 5:28 AM, Larry Martell wrote: > I am trying to run nginx/uwsgi/django in a docker container. If I > mount the dir with my django

Re: handling filedrop.js upload gives a 400

2015-08-22 Thread Josh Stratton
I just realized I pasted a flask snippet from some old code. Ignore this. I'll find the new django snippet. On Sat, Aug 22, 2015 at 10:59 AM, Josh Stratton wrote: > I'm switching from dropzone.js to filedrop.js. I'm using the same > endpoint as I did for dropzone.js,

handling filedrop.js upload gives a 400

2015-08-22 Thread Josh Stratton
I'm switching from dropzone.js to filedrop.js. I'm using the same endpoint as I did for dropzone.js, but I get a 400 error dropping the example code into my html. I'm not quite sure where to go from here to debug it. I'm not sure if it's a simple different in how filedrop.js handles encoding or

path to django from jython

2015-01-27 Thread Josh Stratton
Okay, stupid question, but how do I source django when jusing jython? I have django installed using pip and jython installed locally. I've built my project using python and after adding "doj" to the installed apps, I get a path error building a war. $ jython manage.py buildwar Traceback (most re

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Josh Finnie
You can get the C compiler using this: https://github.com/kennethreitz/osx-gcc-installer No need to install XCode. Josh Finnie -- mobile: (860) 716-5996 home: (202) 657-5346 On Fri, Aug 2, 2013 at 10:50 AM, Larry Martell wrote: > On Fri, Aug 2, 2013 at 8

Announcing Django Announce Twitter bot

2013-04-09 Thread Josh Cartmell
I created a Twitter bot that tweets the title and provides links to messages posted in the Django Announce Google Group (Django release announcements for example). If anyone is interested you can see it here: http://twitter.com/djangoannounce Feel free to give me feedback, or point out bugs. --

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Josh Cartmell
+1 for webfaction, it shouldn't be a problem to compile and use your own binary with them. On Monday, April 8, 2013 11:52:41 PM UTC-7, larsvegas wrote: > > Can somebody advice me on a provider where I can run my own executable? > The program I need to run is written is c++ and can be installed o

Re: How to manage django settings.py for Github, local, production

2013-04-02 Thread Josh Cartmell
You could set up a fabric file that handles the pushing. In our local repo create a file called live_settings.py (which is ignored by git). When fabric pushes to the production server tell it to copy live_settings.py to local_settings.py on the production server. On Mar 29, 1:11 am, surya wrote:

Re: my project is not working in virtualenv in ubuntu?

2013-04-02 Thread Josh Cartmell
It looks to me like your wsgi script is name index.py (which is fine) but you are referencing index.wsgi in your apache conf which probably doesn't exist. Have a look through your error logs and you might see the same. On Mar 31, 12:20 am, Avnesh Shakya wrote: > hi, >    please tell me,what is i

possible ModelMultipleChoiceField bug

2013-03-21 Thread Josh Cartmell
Today I noticed that while this breaks things complaining about an unexpected kwarg empty_label: some_field = forms.ModelMultipleChoiceField( widget=forms.CheckboxSelectMultiple(), queryset=SomeM2mField.objects.all(), empty_label='empty') doing the following in a form's init works (as

Re: Daemonize django server

2013-02-28 Thread Josh Cartmell
This (http://software.clapper.org/daemonize/) may do what you want and can be installed with homebrew on a mac, but if this is in any way a production setting, I wouldn't do it. The dev server hasn't gone through any security audits and could and probably does have unknown weaknesses in that regar

Re: Manually added foreign key not working.

2013-02-21 Thread Josh Cartmell
Can you look at the database in some way and see if FK_Formats_id actually exists in the table? If you added that to the model after you had already synced it then running another syncdb will not create the new field. I would suggest looking into South which will handle database migrations for yo

Re: django synchronize database over REST

2012-12-06 Thread Josh Cartmell
Why not use the same database? i.e. is there any reason that they have to have separate databases? On Dec 6, 5:10 am, psychok7 wrote: > Thanks for the answer.. but what I. Could have synchronous replication? What > do you advise over a rest interface? -- You received this message because you a

Re: Django testing strategy

2012-10-05 Thread Josh Crompton
otes.readthedocs.org/en/latest/testing_and_django.html Hope that helps. Josh On Friday, 5 October 2012 01:49:19 UTC+8, Daniele Procida wrote: > > I have started writing my first tests, for a project that has become > pretty large (several thousand lines of source code). > > What ne

Re: Admin user privilege elevation (how to prevent it)

2012-05-14 Thread Josh Cartmell
That is as I feared, thanks for the help Russ. On May 14, 4:58 pm, Russell Keith-Magee wrote: > On Tue, May 15, 2012 at 5:09 AM, Josh Cartmell wrote: > > Thanks for the responses and insight everyone (special thanks to > > Russel to clarifying what type of attack this is).  I

Re: Admin user privilege elevation (how to prevent it)

2012-05-14 Thread Josh Cartmell
osting via ajax to the admin, rendering obsolete this sort of injection, and still allowing admin users to post javascripts? I'm not sure if it's always possible to reliably differentiate between an ajax vs non-ajax request. On May 12, 7:31 pm, jim wrote: > On Fri, May 11, 2012 at

django 1.4 - admin TemplateDoesNotExist at /admin/auth/user/

2012-05-12 Thread Josh J
/auth/user/change_list.html, admin/auth/change_list.html, admin/change_list.html (File does not exist) Thanks, Josh -- 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@google

Admin user privilege elevation (how to prevent it)

2012-05-11 Thread Josh Cartmell
I work a lot with Mezzanine which is a CMS that uses Django. A security issue was recently revealed where an admin user, lets call him A, (they can post rich content) could put a cleverly constructed javascript on a page such that if a superuser, let's call her B, then visited the page it would el

application startup signal

2012-04-17 Thread Josh J
Hi, What is the way to add a listener to receive an event notification when a django application starts? There is a ticket, though it is not clear what the actual solution or usage is https://code.djangoproject.com/ticket/13024 regards, Josh -- You received this message because you are

Re: comparing custom template tag within if tag

2012-03-29 Thread Josh Cartmell
r whatever equaled service.price, and then use it more directly. Regards, Josh On Mar 29, 1:54 am, Tom Evans wrote: > On Wed, Mar 28, 2012 at 4:59 PM, Nikhil Verma > wrote: > > Hi all > > > i have a custom template tag that takes some argument and calculates the > &g

Re: Auth app in separate database

2012-03-29 Thread Josh Cartmell
Couldn't he also just add the router before syncdb and then they would be created in the correct database? Chris take a look at this documentation if you haven't already, it explains routers which tell Django which database to use for a particular query: https://docs.djangoproject.com/en/dev/topic

Re: ANN: Mezzanine 1.0 released

2012-03-05 Thread Josh Cartmell
Congrats on the release Steve. As a developer that has been using Mezzanine for a bit under a year and a half I have to say that I have been really pleased with the project. A lot has changed in the time since I began using Mezzanine but even in it's infancy Mezzanine provided a very usable base

Re: Is GeoDjango Too Much For This?

2012-03-02 Thread Josh Cartmell
I have two quick comments, check out geopy: http://code.google.com/p/geopy/ and this website http://www.movable-type.co.uk/scripts/latlong-db.html Geopy can give you lat/lng for a given address and that other website has formulas for using lat/lng to calculate a bounding box/circle. It may be a

geodjango admin polygonfield with hole

2011-12-22 Thread Josh K
I've set up geodjango to use the OSMGeoAdmin model. One of the models I've created has a PolygonField. GeoDjango states it follows the OpenGIS Simple Features specification. The spec lists a polygon as being able to have a "hole". So does anyone know how to draw a hole on the OSMGeoAdmin model slip

Re: How do I apply a filter in a custom template tag?

2011-08-14 Thread Josh
Thanks, I've added a function to the Enty models. It doesn't in some cases I get good returns now. But not always. Content is the name of the app. There is no PK-relation on the Category class, but only the below on the Entry class. class Entry(models.Model): categories = models.ManyToManyF

How do I apply a filter in a custom template tag?

2011-08-13 Thread Josh
I'm trying to retrieve a m2m relation from a blog entry. It should give a list of entries with the same categories. Below works when I work in the shell. from content.models import Entry qs = Entry.objects.all() obj = qs[0] related = Entry.objects.filter(categories=obj.categories.all()) The ob

Re: How can I use {{variable}} in custom templatetag?

2011-08-09 Thread Josh
{% get_related_entries weblog.entry 5 from object.categories as related_entries %} {% for entry in related_entries %} {{ entry.title }} {% endfor %} class RelatedEntryNode(template.Node): def __init__(self, model, number, categories, varname): self.model = mode

Re: How can I use {{variable}} in custom templatetag?

2011-08-08 Thread Josh
> > > >If you need to push back a value in a variable call related_entries, then >> you will want to set a value in the context dictionary: > > > > > >context[related_entries] = > > Correction on earlier mail when trying some other things. I do this in the def render. This looks like: class R

Re: How can I use {{variable}} in custom templatetag?

2011-08-08 Thread Josh
I've marked a few things that are important I think, because it is getting a bit bulky >These are my assumptions about the bits of code you've posted: > > > > > >models.py > > >categories = models.ManyToManyField('Category', blank=True, null=True, >> default = None) > > > > > >*Assumption*: ca

Re: How can I use {{variable}} in custom templatetag?

2011-08-08 Thread Josh
>It sounds like you're not resolving the variable at all in your render method -- > >When you construct the template node, you work with Variable objects, which represent the >context variable as it exists in the template source (eg, html). > >At the point where you actually render your output,

Re: How can I use {{variable}} in custom templatetag?

2011-08-08 Thread Josh
>{% get_related_entries weblog.entry 5 from object.categories as related_entries %} I found that out already. Now I'm pretty sure the problem is in the rendering. As far as I can tell ( I don't know how to test template tags in a shell ) I get a list of the names of the categories back.

Re: How can I use {{variable}} in custom templatetag?

2011-08-08 Thread Josh
I think the problem is in the render part. I've modified the __init__ of the Node to self.categories = template.Variable(categories) Any advice is welcome. All I want to do is a query on the Entries model that have corresponding categories and return it to the template. -- You received thi

How can I use {{variable}} in custom templatetag?

2011-08-08 Thread Josh
I'm trying to create custom templatetags now, while learning Django. When an entry is displayed I want to list other entries with the same categories below the entry. I also wrote a templatetag (following the Practical Django Projects from James Bennet) I'm having problems with using a variable

Re: Seperate Image Model

2011-08-07 Thread Josh
Maybe I should add I don't want to manually assign the images, but script this as much as possible. It involves 1000s of images. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com

Re: Seperate Image Model

2011-08-07 Thread Josh
The images and creation of thumbnails aren't the problem. I'll look into the 1th and 3rd. I've looked at a lot of image apps that might give a solution to my problem, but none fitted my requirements. I'm not sure how to get the images in the content. There might be no image at all, but also on

Seperate Image Model

2011-08-07 Thread Josh
I'm only working a few weeks with Django and I want some advice about handling images. Conceptual I have to remind myself that Django is pure python, so that makes me complicate things sometimes. Also I still have some conceptual difficulties with templates and template_tags. Also I'm not real

Re: onmouseover in JavaScript not working

2011-08-05 Thread Josh
> > >Basically, unless you inserted your js code (or any other markup) > >using a {{ var }} or {% tag %}, there is NO "restrictions on these > >blocks with javascript". > > >Did you at least inspected the *rendered* template to see how what > >your HTML and js looks like ? > Thanks for point

onmouseover in JavaScript not working

2011-08-05 Thread Josh
I'm new at Django and am experimenting with JavaScript in templates. I've put JavaScript from Google Charts in a block and it is displaying the chart properly. The onmouseover should display the details of elements in the chart, but that isn't working in Django. In a plain html-page it is disp

Re: how do I update only specific fields in model

2011-07-27 Thread Josh
Thanks for the replys. The more I learn about Django, the more I start to apreciate it. I still have a lot to learn, but compared with Drupal I already feel more comfortable about Django because there is much more control. This is my second Django week, but sometimes I seem to get stuck at sim

Re: how do I update only specific fields in model

2011-07-27 Thread Josh
You already gave the answer. I just tried your solution and it worked. I was trying a wrong approach and was making it much more complex than it really is. My approach caused existing values to be overwritten by Null-values and only inserting the new values. Thanks for answering a newbie quest

how do I update only specific fields in model

2011-07-27 Thread Josh
I want to update only specific fields in a model and keep the old values in other fields. I've been working on this for a few days but I run out of possible solutions.As far as I can see from the documentation and internet there isn't an easy solution to do this. I'm new at Django, so I might

Re: Error with converting month_format in django.views.generic.date_based.object_detail

2011-07-25 Thread Josh
Found it or at least found a workaround. Added month_format to the input dict. A bit strange though? my_info_dict = { 'queryset': Entry.objects.all(), 'date_field': 'pub_date', 'month_format': '%m', } -- You received this message because you are subscribed to the Google Groups "Djan

Re: Is there a way to insert data from a csv file into my database?

2011-07-25 Thread Josh
pgloader is for Postgres I think. If it has to be to a single table it shouldn't be that difficult in Python: 1) get sqlalchemy and declare the django-table. You can use SQLAutocode for this. 2) import and parse the csv-file ( import csv ) 3) use the parsed csv as input for sqlalchemy and add th

Re: Error with converting month_format in django.views.generic.date_based.object_detail

2011-07-25 Thread Josh
The error obviously is: Page not found (404) I'm using Django 1.3 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+uns

Error with converting month_format in django.views.generic.date_based.object_detail

2011-07-25 Thread Josh
I'm new at using Django and am learning it now from several books and internet. I run into problems with changing the month_format to 2 digits ( %m = 06 ) instead of 3 chars (%b = jun) I checked the models.py def get_absolute_url(self): return ('my_entry_detail', (), { 'year': self.my

Re: Questions before switching from drupal to django

2011-07-09 Thread Josh
On 9 jul, 15:15, "Cal Leeming [Simplicity Media Ltd]" wrote: > On Sat, Jul 9, 2011 at 9:19 AM, Josh wrote: > > I want to switch my sites from Drupal to Django. I already read a lot > > about Django and made a few sample apps. I think Django is better > > suited t

Questions before switching from drupal to django

2011-07-09 Thread Josh
I want to switch my sites from Drupal to Django. I already read a lot about Django and made a few sample apps. I think Django is better suited to my needs, but I do have a few questions that I couldn't find an answer for. So I thought of a few solutions that might do the trick. I'm not really a web

forcing authentication without a password

2011-07-04 Thread Josh Stratton
I've setup my authentication system to use the standard name/password with good results, but some of the users are coming directly from Google Apps with an OpenID I've authenticated by hand. What I'd like is if they are authenticated from Google Apps, I can just call auth_login, but they haven't a

Re: Comparing ManyToManyFields

2011-06-29 Thread Josh Lothian
models are really more complicated than I posted (obviously) but the current idea is to key on the hostname, but to compare every single little bit of data in the model to detect changes. -josh On Wed, Jun 29, 2011 at 09:40:24PM -0400, Andre Terra wrote: > You'll first have to explai

Comparing ManyToManyFields

2011-06-28 Thread Josh Lothian
ad to scaling issues. Am I missing an obvious solution here? I've scoured the docs and can't seem to come up with anything that doesn't make me feel icky. -josh -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

ax variables from google using django.auth.openid

2011-02-27 Thread Josh Stratton
I've successfully setup django.auth.openid to do to the login through google, and I see that it will prompt the user for releasing their e- mail. However, I don't see anything available that let's me query the e-mail. Where is that information stored? request.user somewhere? -- You received th

Re: get vs. post in production vs. dev server

2011-02-21 Thread Josh Cartmell
I forgot to mention my development server is fastcgi/apache. Thnaks On Feb 21, 11:15 am, Josh Cartmell wrote: > I have a simple login form on every page like this: > > {% csrf_token %} > > type="password"> > > > > It was working great on the dev ser

get vs. post in production vs. dev server

2011-02-21 Thread Josh Cartmell
anyone experience this or know of a workaround? Regards, Josh -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-user

Re: MySQL jython backend implementation

2011-01-05 Thread Josh Juneau
Javier- Sorry for the lateness of my response. To set up mysql for Django- Jython backend, please see the following issue comment: http://code.google.com/p/django-jython/issues/detail?id=36#c14 Be sure to include the mysql JAR file in your CLASSPATH as well. Best On Dec 20 2010, 12:21 pm, Jav

Re: Show DEBUG page to specific user group?

2010-11-15 Thread Josh
Hmm, I didnt know that, I'm still fairly new to python and django. So if I understand this right DEBUG is basically static once the server starts and will only change with a restart of the server (whatever environment that happens to be in). Thanks for the help! -Josh On Nov 15, 4:32 am

Re: Show DEBUG page to specific user group?

2010-11-12 Thread Josh
I didnt look at the blog post but you could try something like this in your settings: def debug_for_superuser(request): if request.user.is_superuser: return True else: return False DEBUG = debug_for_superuser I haven't actually tried this but I use something like that to

Re: Flatpages incorrect 302 to 404

2010-09-27 Thread Josh
sts/episode/5/mapping-flatpage-urls/ -Josh On Sep 27, 10:27 am, Piotr Kilczuk wrote: > 2010/9/27 Josh : > > > bump.  Does anyone have any ideas? > > Trailing slash issue? > > Just look into the middleware and see when the response code is modified. > > Regards, > Pi

Flatpages soft 404

2010-09-27 Thread Josh
bump. Does anyone have any ideas? On Sep 24, 3:56 pm, Josh wrote: > I have a django project, its a satchmo store.  I have noticed that > when the flatpages middleware is in my settings.py 404s seem to be > handled incorrectly.  i.e. if a page really does not exist the server > first

Re: Flatpages incorrect 302 to 404

2010-09-27 Thread Josh
bump. Does anyone have any ideas? On Sep 24, 3:56 pm, Josh wrote: > I have a django project, its a satchmo store.  I have noticed that > when the flatpages middleware is in my settings.py 404s seem to be > handled incorrectly.  i.e. if a page really does not exist the server > first

Flatpages incorrect 302 to 404

2010-09-24 Thread Josh
I have a django project, its a satchmo store. I have noticed that when the flatpages middleware is in my settings.py 404s seem to be handled incorrectly. i.e. if a page really does not exist the server first sends a 302 response, then a 404. When google crawls it only sees the 302 so it thinks t

Re: errors serving text files using templates and static files

2010-07-26 Thread Josh Boon
) menu_file.write(t.render(c)) return HttpResponseRedirect('/netboot/dynamicmenu.cfg') It works but it's a strange workaround. Serving it directly causes gPXE to break. Any thoughts? On Mon, Jul 26, 2010 at 18:04, Dennis Kaarsemaker wrote: > On ma, 2010-07-26 a

errors serving text files using templates and static files

2010-07-26 Thread Josh
Good morning, I've been writing a Django app to create a dynamic net boot program to boot configs created by users from a web interface using a tool called gPXE. I've exhausted my troubleshooting methods and can't seem to figure out why gPXE can boot from a static file served directly from apache

Apache hang-up after booting

2010-03-31 Thread Josh B
Hi everybody, I'm using django (integrated in an application, omero) as a production server with mod_python (v3.3.1-147.35) and apache (v2.2.10-2.8.1). Unfortunately after rebooting the server apache seems to hang-up. When opening the website I just see the progress-indicator gif. When restarting

Re: stackedinline admin form-set collapse

2010-03-01 Thread Josh Kersey
I'm using Django 1.1.1 and have accomplished this using jQuery. Here's a simplified version of what I write to override the admin change_form template for the targeted app. I put this at //templates/admin///change_form.html: {% extends "admin/change_form.html" %} {% block extrahead %}{{ block.su

Re: weird CSS behaviour

2010-02-22 Thread Josh Kersey
It would be nice to see your templates. Post the django template code for base, index, and register somewhere like dpaste.com and then provide us the link. Kind of hard to make a guess at this point but seeing the code will help. - Josh cabedge.com On Feb 22, 8:55 am, Maciek Strzelecki wrote

Re: How to make the login forms available to the entire site?

2010-02-22 Thread Josh Kersey
I've always done it as rebus_ explained. Put the login options in the base template wrapping it in {% if user.is_authenticated %} to display a different mechanism for users that are already logged-in. That form action is set to the login URL and and the login view handles the login processing, er

Re: Drag and drop re-ordering in change_list causing 'too many files open' error.

2009-07-02 Thread Josh
The gist has been updated to have all the involved files rather than just the jQuery code and the view. http://gist.github.com/139475 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Drag and drop re-ordering in change_list causing 'too many files open' error.

2009-07-02 Thread Josh
I've used jQuery to set up drag and drop re-ordering on the change_list for a model. Basically I created a custom change_list template for the model to add a submit button to the object_tools list and to add some javascript includes. I also created my own modified version of the django.contrib.adm

Thumbnail On Save

2009-06-18 Thread Josh
n code is called in case there was a filesystem sync problem... Really strange. Thanks! - Josh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: How to get the list of logged in users?

2008-11-11 Thread Josh
Hi tamonash.. Not sure if you're still in need of a solution. I just saw some traffic to my project from this thread... Anyway, django-tracking does in fact allow you to show who's logged in. I use it on my own site to show which registered users are logged in. On Sep 17, 6:55 am, tamonash <[E

Re: django google-app-engine appengine backend

2008-09-27 Thread Josh
Hi there, I seem to be having the same problem you are. Any chance you found a solution? Cheers, Josh On Sep 19, 7:51 am, bfrederi <[EMAIL PROTECTED]> wrote: > @Adam Fast > I think you are right. I'm not at home, so I can't check for sure, but > I'm almost posit

Re: Customizing newforms-admin

2008-07-11 Thread Josh
Anybody? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For mor

newforms-admin delete uploaded file/image

2008-07-11 Thread Josh
With newforms-admin is there any way to add a 'delete' checkbox or something to a FileField/ImageField? Basically, we'd like the ability to remove an image that's been uploaded without having to replace it with something else. --~--~-~--~~~---~--~~ You received this

Re: Middleware problem

2008-06-10 Thread Josh
quest, response): try: self.activity.set_request_time() except: pass return response and that took care of it. On May 28, 7:19 pm, Josh <[EMAIL PROTECTED]> wrote: > I created a custom middleware for logging requests based on this blog > post:http

Customizing newforms-admin

2008-06-10 Thread Josh
With newforms-admin, is there currently anyway of duplicating the functionality of 'manage.py adminindex '? It appears that currently this still is looking for the old admin stuff as the result I get is this: {% if perms.myapp %} Myapp {% endif %} I'm guessing that this is basically something t

Middleware problem

2008-05-28 Thread Josh
I created a custom middleware for logging requests based on this blog post: http://whijo.net/blog/brad/2007/07/19/statistics-logging-django.html It's mostly working fine except for one thing. It causes problems when a URL without a trailing / is requested. In that case it gives me the following e

Middleware problem

2008-05-28 Thread Josh
I created a custom middleware for logging requests based on this blog post: http://whijo.net/blog/brad/2007/07/19/statistics-logging-django.html It's mostly working fine except for one thing. It causes problems when a URL without a trailing / is requested. In that case it gives me the following e

Re: Problems with generic.GenericForeignKey()

2008-05-17 Thread Josh
Ah, I see. Thanks, I'll give that a shot. On Mar 28, 6:52 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Mar 28, 9:16 pm, Josh <[EMAIL PROTECTED]> wrote: > > > I've determined that the problem is with the get(). If I just create > > the objects wit

Updated to latest trunk root page (/) stopped working

2008-05-16 Thread Josh
So I ran an svn up on my Django install because I'm running into some issues that QuerysetRefactor should have fixed, and after doing so the root page of my site stopped working. Everything else appears to be working fine, just not /. In my browser it gives me a 502 Proxy Error (which is odd, bec

Re: File caching and pickling issue

2008-05-02 Thread Josh Whitaker
tell me what you mean. - Original Message From: Szymon <[EMAIL PROTECTED]> To: Django users Sent: Friday, May 2, 2008 2:28:43 PM Subject: Re: File caching and pickling issue On 30 Kwi, 16:12, Julien <[EMAIL PROTECTED]> wrote: > [...] http://groups.google.com/group/django-users/browse

Re: Complex Django Hosting

2008-04-27 Thread Josh
So it sounds like the best three options are (in no particular order): 1. Remain with Webfaction. 2. Move to Slicehost. 3. Move to a colocated server. Obviously this is something that will require discussion with my client, but I'm perfectly capable of managing a colocated server, so the main iss

Re: Generic relation issues, can't delete objects

2008-04-25 Thread Josh
That was it! Thanks. :) On Apr 3, 8:09 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 2, 2008 at 6:00 PM, Josh <[EMAIL PROTECTED]> wrote: > > > Sorry, here's the full traceback: > > > Environment: > > > Request Method: GET &g

Re: Complex Django Hosting

2008-04-25 Thread Josh
MAIL PROTECTED]> wrote: > On Apr 25, 2008, at 18:44 , Josh wrote: > > > > > Does anyone have any recommendation for the best approach to hosting > > here, and what hosting company might be a good fit? I know that > > MediaTemple can certainly accommodate our needs,

Re: Complex Django Hosting

2008-04-25 Thread Josh
get to 25k / mo. uniques, you can host on Joyent for free (in > exchange.. you give them your user's info). Sure, its a bit shady.. but if > you need decent hosting on the cheap... >  -justin > > > > On Fri, Apr 25, 2008 at 11:44 AM, Josh <[EMAIL PROTECTED]> wrote:

Complex Django Hosting

2008-04-25 Thread Josh
I'm working on what will end up being a large, high-traffic, multi- site project. Currently we're just using a basic Webfaction account for hosting during development and testing, but I'm trying to figure out what would be the best approach to hosting moving forward. Ideally, we would have multip

Apply custom class to field in admin interface (oldforms)?

2008-04-04 Thread Josh
Is there any easy way to apply a custom class to a particular field of a model in the oldforms admin? Specifically, I want to mimic the behavior of a newforms TimeField with a regular Charfield by just using the built-in javascript time widget. As far as I can tell, all this really requires is fo

  1   2   >