Re: Property fields

2006-05-13 Thread George Sakkis
George Sakkis wrote: > After digging a little into Django's guts, I came up with a simple > field that is also a property: > > from django.db.models import Field > > class PropertyField(Field,property): > def __init__(self, func, **kwds): >

DreamHost

2006-08-08 Thread george webzary
Hi,Has anyone set up a web site on DreamHost with Django pre 0,96 lately. I tried yesterday. It just does not seem to work. I tried Jeff Croft's tutorial first, then changed the code based on this link http://www.djangoproject.com/documentation/fastcgi/And then tried the official version of dreamh

Re: DreamHost

2006-08-08 Thread george webzary
installing flup ( it got installed) and followed the stuff what was recommended in Django new docs. Nothing is working! GeorgeOn 8/9/06, Jure Čuhalev <[EMAIL PROTECTED]> wrote: On 8/8/06, george webzary <[EMAIL PROTECTED]> wrote:> Hi,>> Has anyone set up a web site on DreamHost

Re: DreamHost

2006-08-09 Thread george webzary
simon/eugene,I have tried all!Just for the records.I have followed jeff croft's tutorial first.No harm in checking on all. But I had done this checklist 1) I have turned fastcgi 2) My website is pointing to the rightfolder 3) My django project is all fine 4) I can see my database fields. Entries

Re: DreamHost

2006-08-09 Thread george webzary
One more thing! I have complained to dreamhost folks. I am awaiting their mailsThanks for all the suggestions. Great work , guysGeorgeOn 8/9/06, george webzary <[EMAIL PROTECTED]> wrote: simon/eugene,I have tried all!Just for the records.I have followed jeff croft's tutorial first

Re: DreamHost

2006-08-09 Thread george webzary
I wrote it using vi on the ssh shell!Is it possible of such a thing occuring GeorgeOn 8/9/06, Michael Spencer < [EMAIL PROTECTED]> wrote:george webzary wrote:> simon/eugene, >> I have tried all!>> Just for the records.>> I have followed jeff croft's tutorial first.> No harm in checking on all.>> Bu

Re: DreamHost

2006-08-09 Thread george webzary
that connection is turned off.George On 8/9/06, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: george webzary wrote:>> I have tried all!>> Just for the records.>> I have followed jeff croft's tutorial first.> No harm in checking on all.>> But I had done this checklist

Re: DreamHost

2006-08-09 Thread george webzary
anything wrong. Problem is jeff's web site has screen captures. I can't make out the number of spaces I need to leave. Do you suggest I try the .htacess file from the dreamhost django web siteThanksGeorgeOn 8/9/06, george webzary < [EMAIL PROTECTED]> wrote:hi,The hello.fcgi is now working.

Re: DreamHost

2006-08-09 Thread george webzary
Also can I wget any working .htaccess files from django dreamhost installation.ThanksGeorgeOn 8/9/06, george webzary < [EMAIL PROTECTED]> wrote:Hi,I am a able to get django.fcgi now to work. Even the admin module is working on http://blog.pythonmag.com/django.fcgi/admin But I am not able

Re: DreamHost

2006-08-09 Thread george webzary
record some of the dumb mistakes I made, later as a comment on jeff's blog.Thanks guys again. Now need to get back to other issues George WOn 8/9/06, george webzary <[EMAIL PROTECTED]> wrote: Also can I wget any working .htaccess files from django dreamhost installation.ThanksGeorgeOn 8/9/

symlink mess

2006-08-26 Thread george webzary
HiI know this is unrelated to Django. But I guess I mucked up my django sym links, by linking it number of times.How do I remove the multiple level of sym links. This is a Linux newbie question. But has me stumped. When I run setup.py install from updated svn directory, I get this errorerror: djang

Web framework frustration

2006-03-18 Thread George Sakkis
e leave it behind after a few days hitting one wall after the other. I have the vague impression that the custom admin template tags might be useful in a more general context.. if only they were documented... Wishfully-thinking-of-a-web-framework

Ordering bugs

2006-03-19 Thread George Sakkis
I'm working on the magic-removal branch and I stumbled on two bugs on ordering: - 'order_with_respect_to' raises OperationalError "no such column: myapp_article._order" - 'ordering' ignores all fields but the first. Can

Foreign key field name confusion (bug ?)

2006-04-09 Thread George Sakkis
e come across this ? I am using the magic-removal branch, if it makes any difference. Thanks, George --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Database views

2006-04-09 Thread George Sakkis
;question','choice'] # Then, PollChoice.objects.filter(pub_date__lte=datetime.datetime.now(), votes__gt=10) # translates to # SELECT Poll.question, Choice.choice # FROM Poll, Choice # WHERE Choice.poll_id=Poll.id AND Poll.pub_date<=NOW() AND Choice.votes>10 Has anyone though of/implemented an

Re: Database views

2006-04-11 Thread George Sakkis
e view's fields belong to. Speaking of fields, it is necessary for a view that each field knows its (physical) model; currently however only the model knows its fields, the field doesn't know the model it belongs to. I'm sure there are even more problems along the way but these are t

Decoupling "choices" from Fields

2006-04-16 Thread George Sakkis
add a ticket, though I'm not sure if it should be filed as an enhancement or a bug; certainly the current behaviour is surprising, to say the least. Thanks, George --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Decoupling fields from forms

2006-04-28 Thread George Sakkis
ateField widget, not a range; also the backend knows nothing about how to map a DateRangeField to a table column). Any ideas on how to decouple the field from its widget(s) ? Thanks, George --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Django sever for andriod

2022-01-17 Thread Chukwu George
Please help! I am trying to access django login page but it keep tell me "A server error occurred. Please contact the administrator" what do I do? Please help. On Wednesday, January 28, 2015 at 3:35:54 AM UTC-10 Andreas Kuhne wrote: > 2015-01-28 6:45 GMT+01:00 suhail areekkan : > >> I am new in

NameError:

2022-04-08 Thread tech george
Hello, I've been struggling with the below error, what might be the problem? I have used the same ForeignKey in other models.. all works ok, except this. Please advise. *Models:* class CustomUser(AbstractUser): user_type_data = ((1, "AdminHOD"), (2, "Pharmacist"), (3, "Doctor"), (4, "Pharm

Re: NameError:

2022-04-09 Thread tech george
tients model. > > Regards, > > Antonis > > On 08/04/2022 20.49, tech george wrote: > > Hello, > > I've been struggling with the below error, what might be the problem? > > I have used the same ForeignKey in other models.. all works ok, except > thi

Calculated Fields

2022-04-10 Thread tech george
Hello, I am trying to calculate fields directly from a model but no luck. I want to get total_price from quantity, reoder_level and unit price. My code is abelow, Please advise. class Stock(models.Model): unit_price = models.DecimalField(max_digits=10, decimal_places=2, default='0', blank=Tru

Re: Calculated Fields

2022-04-10 Thread tech george
t; -- > (Unsigned mail from my phone) > > > > ---- Original message > From: tech george > Date: 11/4/22 03:50 (GMT+10:00) > To: django-users@googlegroups.com > Subject: Calculated Fields > > Hello, > > I am trying to calculate fields directl

Re: Calculated Fields

2022-04-11 Thread tech george
def total_price(self): > return (self.quantity + self.reorder_level) * self.unit_price > > > > On 10/04/2022 20.49, tech george wrote: > > Hello, > > I am trying to calculate fields directly from a model but no luck. I want > to get total_price fr

Calculations Between Models

2022-04-19 Thread tech george
Hello, I have a model Staff and LeaveReportStaff, I wanted to get leave_balance between Total_Leave_Days and leave_days. Please advise the best way forward. class Staff(models.Model): Total_Leave_Days = models.PositiveIntegerField(default=0) course = models.ForeignKey(Course, on_delete=m

Fetching Data Between Models

2022-04-20 Thread tech george
I have a model Staff and LeaveReportStaff, I wanted to get leave_balance between Total_Leave_Days and leave_days. I already used Foreignkey for staff but I'm not sure if it is right to use Foreignkey again. Please advise the best way forward. class Staff(models.Model): Total_Leave_Days = mode

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread George Tantiras
What about Django permissions? https://docs.djangoproject.com/en/4.0/topics/auth/default/A user can be related to many groups.20:23, 9 May 2022, DJANGO DEVELOPER :https://stackoverflow.com/questions/72161764/how-to-make-a-user-act-as-a-seller-and-as-a-buyer-at-the-same-time-in-djangoI have posted m

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread George Tantiras
I cannot but agree with Kasper, but here is a naive example: @login_requireddef create_sale_view(request):   if request.user.has_perm("sell.add_product"):       # The user can add new product for sale   else:       # The user cannot add new product for salehttps://docs.djangoproject.com/en/4.0/topi

Models Culculations

2022-08-03 Thread tech george
Hello, Please help with the below, I am trying to get dispense_quantity from Dispense Model and subtract it from the quantity on Stock Model. Then after that get something like this; @property def closing_stock(self): return (self.quantity - self. quantity_issued ) class Stock(models.Mod

Negative Stock Prevention

2022-08-29 Thread tech george
Hello, Please help crack the below code, I want to prevent negative stock, and if the stock is == 0, deduct it from reorder_level instead. Currently, the stock goes negative. models.py class Stock(models.Model): quantity = models.IntegerField(default='0', blank=True, null=True) reorder_l

Re: Negative Stock Prevention

2022-08-31 Thread tech george
> instance.quantity? Also, presumably you want to check if quantity is > greater than or equal to qu rather than 0. > Try changing `if quantity > 0` to `if instance.quantity >= qu` > > > On Tuesday, August 30, 2022 at 3:44:51 PM UTC+1 Ryan Nowakowski wrote: > >> O

Re: Negative Stock Prevention

2022-08-31 Thread tech george
Hello, Sorry the error is: django.db.utils.IntegrityError: CHECK constraint failed: quantity On Thu, Sep 1, 2022 at 3:45 AM Ryan Nowakowski wrote: > I don't see any error. Did you forget to post it? > > On August 31, 2022 5:57:32 AM CDT, tech george > wrote: >> &g

Re: Negative Stock Prevention

2022-08-31 Thread tech george
ep 2022, 02:45 Ryan Nowakowski, wrote: > >> I don't see any error. Did you forget to post it? >> >> On August 31, 2022 5:57:32 AM CDT, tech george >> wrote: >>> >>> Hello, >>> >>> Sorry for the late reply. >>> >>>

Filter by date range

2022-09-09 Thread tech george
Hello friends! I am trying to give users an easier way to filter data by date range. My views.py code is as below, but unfortunately, it is hiding data without applying the filter whenever I try to use if, else statements. Please advise what I might be doing wrong. views.py ef referralsReports

Re: Filter by date range

2022-09-09 Thread tech george
filter(date__range=[fromdate,todate]) > if you have any problem with performance hit database use select_related > or used m2m field use prefect_related > https://docs.djangoproject.com/en/4.1/ref/models/querysets/ > > best! > > On Fri, Sep 9, 2022 at 7:48 AM tech george

Re: Filter by date range

2022-09-10 Thread tech george
'todate'? > > On Sat, 10 Sept 2022 at 13:27, tech george wrote: > >> Hello Carlos, >> >> I have used the code below as you advised by when I filter the table >> comes blank: >> >> query_results = Prescription.objects.filter(date__rang >>

Re: Filter by date range

2022-09-11 Thread tech george
.@gmail.com> wrote: > Either there's no data for that month or your query is wrongly formatted. > Probably you can try your query in the shell first. > > On Sun, 11 Sept 2022 at 02:12, tech george wrote: > >> Hello Muhammad, >> >> I'm choosing dates b

Re: Filter by date range

2022-09-11 Thread tech george
I managed to solve the issue. I was using the wrong keyword to fetch the dates. Thanks for the support. On Mon, Sep 12, 2022 at 9:03 AM tech george wrote: > Hello, > > I have tried debugging as below and it returned data; > > search_results = > Prescript

Re: group

2022-09-28 Thread tech george
Please add me: +254724164862 On Wed, Sep 28, 2022 at 7:13 PM Prince Adedotun wrote: > Add me also... > > 08167422287 > > On Mon, 26 Sept 2022, 18:49 yassin kamanyile, > wrote: > >> Add me +255763023477 >> >> On Mon, 26 Sept 2022, 15:53 Abdulfarid Olakunle, >> wrote: >> >>> Hello fellow develo

Export filtered data

2023-01-19 Thread tech george
Hello, I have been trying to export filtered table data to excel but was unlucky. I can filter the table by date range successfully but can export the filtered data. Below is my view.py. Please help def export_sickoff_export(request): if request.method=="POST": start_date = requ

Re: ANN: OGC Web Feature Service for GeoDjango

2012-01-31 Thread George Silva
roup, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessamento.net http://blog.geoprocessamento.net -- You received this

Re: Django Unittesting Question.

2012-02-28 Thread George Silva
, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessamento.net http://blog.geoprocessamento.net -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: South tutorial is not working

2012-04-13 Thread George Silva
ers?hl=en<http://groups.google.com/group/django-users?hl=en> >>> . >>> >> -- > 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/d/msg/djan

Re: Django + Windows Server 2003 + IIS6 + MSSQL 2005

2012-04-17 Thread George Silva
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 > http://groups.google.com

Re: Confused about GeoDjango and PostGIS

2012-04-25 Thread George Silva
- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For m

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-07 Thread George Silva
-users?hl=en. > > > > Daniel Sokolowski > Web Engineer > Danols Web Engineering > http://webdesign.danols.com/ > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group,

Re: Best Practices for Changing Data Model

2012-05-10 Thread George Silva
ango-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. > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessa

Re: Does Django guarantees to generate well Optimized SQL Query ??

2012-05-18 Thread George Silva
Yes and no. Django provide mechanisms that you will minimize hits to the database. Check for select_related function for example. George On Fri, May 18, 2012 at 1:00 PM, shariq wrote: > Hi, > I am writing an Django application. > This project need to be very efficient and well

mysql warnings raise exception

2012-07-10 Thread George Lund
appear to be full of people getting caught out by this (if it will help the case, I can list numerous references!) TIA George -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://gro

Re: Prioritise 0.1 released

2012-07-14 Thread George Silva
it out (yay!), go here: > https://github.com/jonblack/prioritise > > Thanks! > > -- > Jon Black > www.jonblack.org > > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessamento.net http://blog.geoprocessamento.net -- You received this message because you ar

Re: Dynamic forms

2012-07-30 Thread George Silva
; 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. >> > > > > -- > Thanks, > > Marshel > > "They that can

Re: How many attempts to generate a unique ID?

2012-09-09 Thread George Silva
gt; 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. > -- George R. C. Silva

Re: GeoDjango and shapefiles

2012-09-20 Thread George Silva
t > https://groups.google.com/d/msg/django-users/-/u2kiG0kJd0UJ. > 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.goo

Re: How to separate data having the same model but belonging to different users?

2012-09-28 Thread George Silva
gt; http://www.djangobook.com/en/2.0/chapter10.html > > Search for the section on Managers. This would be an excellent way to > solve your problem. Using one model you can use different managers > which filter on Department Name > -- > Joel Goldstick > > -- > You received this mes

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread George Silva
en sufficient before... > > -- > 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+unsubscribe@** > goo

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread George Silva
Then it's probably Oracle, which is riddled with bugs on the spatial part. I'm using PostGIS. On Tue, Oct 2, 2012 at 8:38 AM, Jani Tiainen wrote: > > 2.10.2012 14:34, Jani Tiainen kirjoitti: > > 2.10.2012 14:06, George Silva kirjoitti: >> >>> This is puz

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread George Silva
at 9:49 AM, Jani Tiainen wrote: > I guess all this is related to special munging required by Oracle: > > https://code.djangoproject.**com/ticket/10888<https://code.djangoproject.com/ticket/10888> > > > 2.10.2012 15:12, George Silva kirjoitti: > >> Then it's

Bulk delete - performance / object collection

2013-01-02 Thread George Lund
I can construct the SQL by hand easily enough, but I feel this isn't doing things the right way. thanks for any help George -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://g

Re: Bulk delete - performance / object collection

2013-01-02 Thread George Lund
amming languages (and abstraction levels) to solve a problem isn't really ideal. >From a very personal point of view I'd like to see archaic languages like SQL go away for ever one day, in the meantime I completely agree that if the ORM doesn't do what's needed then the

Re: Bulk delete - performance / object collection

2013-01-02 Thread George Lund
Thank you very much for this. I'll catch up with those threads and read more about DSE, which looks really interesting work. regards George On Wednesday, 2 January 2013 11:50:54 UTC, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi George, > > This is one area I spent quite

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

2013-02-15 Thread George Silva
Very cool. Please post some notes about whole thign. On Fri, Feb 15, 2013 at 2:34 PM, Robin Fordham wrote: > Hi guys, > > Thanks for all the pointers! > > George / Bob - That's exactly the pointer I needed 'exec' or 'eval' > > Ryan - Celery is so

Re: Help in finding how to learn Django

2013-06-29 Thread Grant George
The best way to learn anything related to programming is by doing. Here are some great resources that teach and utilize examples. Code any examples yourself and understand how they work. Here's an order I recommend, where you can skip steps depending on your comfort level: Step 1 - Essential Py

Freelance Django - London (£1500)

2013-07-01 Thread George Kazarian
We are a London based online retail startup (currently in test-launch). The website is up and running with a fully functioning payment system. Our soft launch is planned for July 25th. The website requires some changes and UX improvements before we open up to public. The following sections on t

London based Django Dev: UX/UI (£300 per day)

2013-07-02 Thread George Kazarian
By way of introduction my name is George and I'm the founder and CEO of www.therecipekit.co.uk. We are a London based online retail startup selling recipe kits that include amazing ingredients and simple to follow cooking instructions. Right now, I'm looking for a freelance django

Senior Python/Django Dev in London (£5000-6000 per month)

2013-08-18 Thread George Kazarian
Based in London, *The Recipe Kit* is a tech startup with a set mission of changing the way people currently eat and cook at home. We believe that all traditional shopping and cooking models are quite outdated and create a lot of unnecessary stress. We are currently experiencing a growing

Save data from parent in inline admin form

2013-08-29 Thread George Tsotsos
i have a model admin form with 3 inlines, my problem is that i want one of the inline forms be saved with data from parent form. eg. *fieldfrominline = fieldfromparent *class multifield1_inline(admin.TabularInline): model = multifield1 extra = 1class multifield2_inline(admin.TabularIn

Re: Model inheritance problem

2013-09-17 Thread George Lund
t-has-no-attribute-stringproperty So your base model has no field called "name". HTH George -- 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: Model inheritance problem

2013-09-17 Thread George Lund
ptember 2013 15:28:08 UTC+1, Antonio Mignolli wrote: > > Hmm, no, it does not work even without indexed=True, > my mistake. > So the "issue" remains. > > Il giorno martedì 17 settembre 2013 16:17:04 UTC+2, Antonio Mignolli ha > scritto: >> >> Thanks, Ge

difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Wesley George
I'm working on a django application that uses the mysql backend in production but the sqlite3 db backend during dev to speed up testing. I was surprised to find these backends differ when populating extra model fields with aggregated datetimes. Specifically, if you use Queryset.extra to create

Re: difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Wesley George
On Saturday, October 26, 2013 3:49:42 PM UTC-4, Ramiro Morales wrote: > On Sat, Oct 26, 2013 at 3:47 PM, Wesley George > > > wrote: > > > > I'm working on a django application that uses the mysql backend in > production but the sqlite3 db backend during dev

Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-05 Thread George London
mmunity's heavy weights could heavy-weigh in and verify that my recommendations make sense.* I've got a full draft prepared. *If you'd be interested in reviewing it (or can recommend someone I should ask directly), please email me directly.* -George -- ---

Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread George London
b.com/jacobian/djangobook.com) > instead of looking for private reviewers? > > > On Tue, Nov 5, 2013 at 9:34 PM, George London > > > wrote: > >> Hi All! >> >> As a fairly recently self-taught Djangonaut, I was a bit dissatisfied >> with the existing resour

Re: Connection with third database using multidb implementing DB Router

2013-11-08 Thread George Silva
t; https://groups.google.com/d/msgid/django-users/CA%2B16coM5s7KgGrMF4MqTGY5DYZ%2B7M43-4PkV14sm2yNTvstCHA%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- George R. C. Silva SIGMA Consultoria http://www.consultoriasigm

Re: Connection with third database using multidb implementing DB Router

2013-11-08 Thread George Silva
f the database configured in settings.py as the alias. Like this: class ModelInAnotherDatabase(models.Model): name = models.CharField() objects = ExternalManager(alias="external") Where external is the database name configured in settings.py. On Fri, Nov 8, 2013 at 3:11 PM, Ovnicraft wr

Re: How to build a social network

2011-04-20 Thread George Silva
will depend on your modelling, goals, and a lot of other things. You can make a social network with django in three minutes, but I doubt you can make one as popular or as well designed as Facebook in that little time (and a lot of other things) Well, good luck... George On Wed, Apr 20, 2011 at 9:09 PM

Re: How to setup the django progject to apache2

2011-05-01 Thread George Ajam
Did you tried to put your configuration in a file similar to default inside /etc/apache2/sites-available then try to make an enable to the site 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

Problem with Geometries

2011-05-02 Thread George Silva
ometria",help_text="O polígono representativo do limite do bairro") objects = models.GeoManager() class Meta: verbose_name = "Bairro" verbose_name_plural = "Bairros" admin.site.register(Neighborhood,admin.GeoModelAdmin) Any one ca

Re: my models are remembering old fields that I have since deleted

2011-05-07 Thread George Silva
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. > -- George R. C. Silva Desenvolvimento em GIS http://geoprocessamento.net http://blog.geopro

Django Inline Autocomplete

2011-06-08 Thread George Cummins
Is it possible to filter an inline autocomplete field by a dynamic value entered by a user? For example, I have a an admin form where staff enters games information including home and visiting team, game date and time, score, etc. They also enter individual player names and stats. I would like to

ImportError only when Debug=False

2011-08-02 Thread George Cummins
or off. It only occurs when using my production stack ( Django 1.2.5+uWSGI+nginx ). I have checked and rechecked the code, and can find no problems. Can you tell me the differences in the way Django handles imports when debugging is on or off, or point to relevant documentation? Thank you, George C

Re: ImportError only when Debug=False

2011-08-02 Thread George Cummins
On Tue, Aug 2, 2011 at 12:38 PM, Tom Evans wrote: > On Tue, Aug 2, 2011 at 3:17 PM, George Cummins wrote: > > While testing changes to an existing project, I disabled debugging. While > > trying to restart the web server (uWSGI+nginix), I encountered the > following >

Re: DB-Views or read-only tables in models

2011-01-25 Thread George Silva
Perhaps you could override the save method and make it like this: def save(self,*args,**kwargs): pass Would that work? This is also a curiosity I have, but didn't have a chance to test it. Any thoughts? George On Wed, Jan 26, 2011 at 12:22 AM, Russell Keith-Magee < russ...@keith-m

Model with several ManyToManyFields - related_name problem

2011-03-17 Thread George Lund
ted_name should work. But I don't seem to be able to specify '+' for more than one of the fields: I get a 'reverse query clashes' error. Is this expected? It feels like a bug (i.e. I'd expect all fields with related_name="+" to be ignored for this check).

Re: Model with several ManyToManyFields - related_name problem

2011-03-18 Thread George Lund
sites = models.ManyToManyField(Site, verbose_name="list of sites") but the backwards relation gets created with a singular name (inevitably I guess, because that's what the system can work out). It seems a bit inconsistent? cheers George -- You received this message because you are subscri

django-admin commands from installed egg

2011-03-25 Thread George Lund
mstances where imp is supposed to work differently from a regular import, but I can't see from the docs what those might be. Any ideas appreciated. thanks George Lund -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: unicode question

2011-03-29 Thread George Lund
to include text like that in a URL (e.g. maybe it could be saved to a model instance, and recovered via an id or a slug?) would often be a better option. Hope that helps George -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Disorientated by too many google-maps django packages

2015-01-26 Thread George Silva
users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/12E97993-5E82-48EF-AE5C-443F51F79C32%40gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C. Silva SIGMA Consultoria

Re: django doubt

2015-01-27 Thread George Silva
egroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C. Silva SIGMA Consultoria http://www.consultoriasigma.com.br/ -- You received this message because you are subscribed

Re: django doubt

2015-01-27 Thread George Silva
what? english, please. Em 27/01/2015 12:13, "termopro" escreveu: > > Purpose well, libs clean, u happy. > If don't use, don't use - problem no. > The diff is some syntx sugr/ abilty do thngs ezly. > > On Tuesday, January 27, 2015 at 9:15:19 AM UTC+2, Kadhir Mani wrote: >> >> what pupose using vir

Re: Is this good django practice?

2015-02-09 Thread George Silva
e04%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/3e4f9e4f-3a7a-447a-bf29-7547d049ae04%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C. Silva SIGMA Consultoria -

Re: Seems like a geodjango bug with multiple databases

2015-02-19 Thread George Silva
t;> line 357, in get >> self.model._meta.object_name) >> multi.models.DoesNotExist: Hotel matching query does not exist. >> >> The thing is, if I create a hotel record on database issue1 with id of 9 >> then the last command works, so I guess it tried to loo

Re: Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-20 Thread George Silva
8-a81a-4228-bb68-cbebb675d729%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/bdde39c8-a81a-4228-bb68-cbebb675d729%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C.

Re: Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-20 Thread George Silva
logic to hang it in > e.g. before 0028 with already a 0027 existing. > > What's best practice here? > > Am Freitag, 20. Februar 2015 18:16:48 UTC+1 schrieb george: >> >> The deal here is that the model Currency has an ID, which is well, >> integer. >> >&g

Django sometimes shows partial (incomplete) json data in production env

2015-02-24 Thread George Mejia
I request some json data by some url, sometimes it works fine and *sometimes doesn't* ... I looked another related cuestion here , but it seems to recommend not change content-length by middleware ... my json data incomplete is as i

Re: django deployment in a virtual machine.

2015-02-24 Thread George Silva
not production i hope. in prod use nginx. if not on prod use runserver 0.0.0.0:8000 Em 24/02/2015 18:37, "dk" escreveu: > I got a virtual machine with Linux centos that we are going to use for our > django webpage. > that machine will have the html service on. so when people go to the > computer

Django beggining problems

2015-03-13 Thread george . varaboutis
i am following the tutorial right now... I use windows 7 python 2.7.6 and django 1.7.6 when i run "django-admin startproject mysite" it opens a file on notepad++ called django-admin with some code in it #!c:\users\radcliff\appdata\local\enthought\canopy32\user\scripts\python.exe f

django beginner

2015-03-13 Thread george . varaboutis
i am at the start i use windows7, python 2.7.6 and django 1.7.6 after installation i tried to run "django-admin startproject mysite" and it only opened notepad++ the file django-admin.py i then went in the directory that it was found and coppied the three files in the folder i want my project t

Re: django beginner

2015-03-13 Thread george . varaboutis
Τη Παρασκευή, 13 Μαρτίου 2015 - 6:58:55 μ.μ. UTC+2, ο χρήστης george.v...@gmail.com έγραψε: > > i am at the start > i use windows7, python 2.7.6 and django 1.7.6 > > after installation i tried to run "django-admin startproject mysite" > and it only opened notepad++ the file django-admin.py > >

Re: django beginner

2015-03-13 Thread george . varaboutis
i have django installed correctly i checked witht he version test my python folder is on c:\ #!c:\users\radcliff\appdata\local\enthought\canopy32\user\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line() this is what is in

Re: django beginner

2015-03-13 Thread george . varaboutis
ok i put the folder that the django-admin file is in at the variables path of windows i hope that deals with later problems with files -- 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

<    1   2   3   4   >