Solution of sending mails in Python, Django or Flask.. SOLVED

2023-01-24 Thread It's Aladdin
import smtplib my_email = "some...@gmail.com" password = "sfuyyudfgyudgfydsg" with smtplib.SMTP('smtp.gmail.com') as connection: connection.starttls() connection.login(user=my_email, password=password) connection.sendmail( from_addr=my_email, to_addrs="someone_e...@gma

Re: solved

2022-10-31 Thread Aziz Mek
Hi Robert, in the conversation which you can get to using the link at the bottom of the emails from the group, do a search on your name or email address, here is one https://groups.google.com/g/django-users/c/L4J9nvsLs1g/m/tqEnEw0YAwAJ here is the other one https://groups.google.com/g/django-user

Re: solved

2022-10-29 Thread ssawyer
The joy or working in multi developer / team environments :)... Although for me, it's usually my challenging myself by leaving boobie traps in my code. On 10/29/22 9:18 AM, Robert Leach wrote: I don't know how to find the conversation I just started, but I wanted to add a note that I figured o

solved

2022-10-29 Thread Robert Leach
I don't know how to find the conversation I just started, but I wanted to add a note that I figured out my problem. There were calls to `full_clean` another developer had introduced that was changing the database and causing the cross-database relations. -- You received this message because y

Re: Solved: How to delete user salary record , but want to keep history till deleted date

2022-01-08 Thread Feroz Ahmed
Hi , it works, it was my confusion,, i update record status as Inactive so , it hide the record. thanks for your support On Saturday, January 8, 2022 at 7:47:17 PM UTC+5:30 Feroz Ahmed wrote: > No errors: but no any actions, > all records shows in home1.html > not excluding the Inactive record

Re: [WARNING - NOT Solved] SVG widget for the Admin

2021-07-25 Thread Mike Dewhirst
On 9/06/2021 12:44 pm, Mike Dewhirst wrote: Do not use this solution. The Svg_AdminTextareaWidget code below deletes data on saving. I think the reason might be that on saving it tries to save the image instead of the image source code. I'm now digging deeper and will report back. I can't

Re: complex math calculation from query set # SOLVED

2021-07-24 Thread Franck Tchouanga
Guys I got a good place to manage all your django and good enough developer and designers for your project just check out the below link to get it all https://bit.ly/3eUJJcX On Sat, Jul 24, 2021 at 7:36 PM esteem learning center < ahmeddauda.dr...@gmail.com> wrote: > If you want to do some basic

Re: complex math calculation from query set # SOLVED

2021-07-24 Thread esteem learning center
If you want to do some basic django calculations, you can use django-mathfilters is simple to use for add, subtract, mul, and div On Sat, Jul 24, 2021, 3:33 PM mab.mo...@gmail.com wrote: > Thank you Derek for the information. For those that are having similar > problems this is the solution that

Re: complex math calculation from query set # SOLVED

2021-07-24 Thread mab.mo...@gmail.com
Thank you Derek for the information. For those that are having similar problems this is the solution that worked for me based on Derek's lead ## METHOD 1 ## # view def position_view(request): packet_data = TncData.objects.exclude(lat=0).order_by('-dt_heard')[:100] # loop through q

[Solved]: Unit testing migrations [Was: Related model 'company.user' cannot be resolved]

2021-07-07 Thread Mike Dewhirst
On 7/07/2021 9:56 am, Mike Dewhirst wrote: It seems I have to meddle with history and persuade the testing harness that my custom user model has been in the company app from the beginning of time. See story below. Upside is that testing will (might) start working again. Downside is I'll go ma

[WARNING - NOT Solved] SVG widget for the Admin

2021-06-08 Thread Mike Dewhirst
Do not use this solution. The Svg_AdminTextareaWidget code below deletes data on saving. I think the reason might be that on saving it tries to save the image instead of the image source code. I'm now digging deeper and will report back. Mike On 7/06/2021 6:00 pm, Mike Dewhirst wrote: Than

Re: [Solved] SVG widget for the Admin

2021-06-07 Thread Derek
Good to hear! Django once again proving capable, once you figure it out. Am reminded of the Zen: "There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch." On Mon, 7 Jun 2021 at 10:00, Mike Dewhirst wrote: > Than

[Solved] SVG widget for the Admin

2021-06-07 Thread Mike Dewhirst
Thanks Derek - it is now working as follows ...  class Chemical(models.Model):     ...     ddstructure = models.TextField(null=True, blank=True, verbose_name="2D structure")     ... class Svg_AdminTextareaWidget(AdminTextareaWidget):     def render(self, name, value, attrs=None, renderer=Non

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Chaitanya Sai
Thanks for your reply guys. I figured it out. I have typo of serializer name in serilizers.py which is causing the error. Damn, I spend 4 hours into this. On Wed, Jul 22, 2020 at 11:22 AM Liu Zheng wrote: > Hi, > > Probably not enough to look at urls.py files only. My guess: Do you use > ‘revers

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Liu Zheng
Hi, Probably not enough to look at urls.py files only. My guess: Do you use ‘reverse’ function anywhere in covid app? If so, here’s a circular import: urls.py imports covid urls -> covid urls import covid views -> one covid view uses reverse -> reverse import urls.py of the project (to look up th

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread sandeep kumar
I have faced this issue atleast 100 times..:) Her are the steps (sorry, I could not find a better way): 1. comment urls in urls.py (inside individual app) 2. check if you still have issue 2a. if you do not have issue, then you probably have not defined views for some of the urls 2b. if you still

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Chaitanya Sai
Hello Django users, Is there not even single person who can solve this issue?? On Tue, Jul 21, 2020 at 8:09 PM Sai wrote: > I am working Django rest framework api project, where I had multiple apps > in the project. I got a circular import error when I am adding the app URLs > to th

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Chaitanya Sai
Can any one Look into this thing ?? On Tue, Jul 21, 2020 at 8:09 PM Sai wrote: > I am working Django rest framework api project, where I had multiple apps > in the project. I got a circular import error when I am adding the app URLs > to the main URLs. I Tried everything checked spellings, c

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Mike Dewhirst
On 22/07/2020 10:08 am, Sai wrote: > I am working Django rest framework api project, where I had multiple > apps in the project. I got a circular import error when I am adding > the app URLs to the main URLs. I Tried everything checked spellings, > checked app structure but no use. Its been really

How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Sai
I am working Django rest framework api project, where I had multiple apps in the project. I got a circular import error when I am adding the app URLs to the main URLs. I Tried everything checked spellings, checked app structure but no use. Its been really frustrating with issue..please help to

Re: How to add a button to Django Admin user menu (the one with logout, change password, ...) ? [SOLVED]

2020-06-12 Thread Olivier
It seems django-admin-tools is doing what I was after, and more. If a django-admin-tools-enabled admin site could peacefully co-exists with classical admin site, then it would be perfect. Le vendredi 12 juin 2020 10:31:43 UTC+2, Olivier a écrit : > > Hello, > > When logged into Django Admin, I c

Solved [Was: How can I use a custom widget in the Admin for a custom user]

2020-01-07 Thread Mike Dewhirst
On 6/01/2020 7:26 pm, Mike Dewhirst wrote: Sorry for being boring  ... I cannot persuade the UserAdmin to use a custom widget instead of the one it usually uses. If you can point out where I'm going wrong I will be indebted to you.  I have tried two ways of using a custom widget ... 1. htt

Re: Django 2.2 CheckContraint: how to check "min_foo < max_foo" ? [SOLVED]

2019-11-13 Thread Olivier
Yes, using things like models.F('price') made it ! Thank you very much, Leonardo, for this. Le mercredi 13 novembre 2019 13:35:37 UTC+1, LRezende a écrit : > > Hi, >Didn't tested... Did you try the F expression? > > from django.db import models > class Customer(models.Model): > age = mod

[Solved] How to disable the the Delete button

2019-05-28 Thread Mike Dewhirst
(I hate my email formatting) - - - - - - - - - - - - - - - - - - - - - - I asked too soon. Sorry. There is a method in contrib.admin.options.BaseModelAdmin called ... def has_delete_permission(self, request, obj=None): """ Returns True if the given requ

[Solved] How to disable the the Delete button

2019-05-28 Thread Mike Dewhirst
I asked too soon. Sorry. There is a method in contrib.admin.options.BaseModelAdmin called ... def has_delete_permission(self, request, obj=None): """ Returns True if the given request has permission to change the given Django model instance, the default implementation doesn't examine the `obj`

Re: [Solved] Re: How can I refresh admin_urls

2019-02-25 Thread Dylan Reinhold
Thanks for sharing Mike. Dylan On Mon, Feb 25, 2019 at 9:35 PM Mike Dewhirst wrote: > Thank you all for your attention. Kept me going. (another resend this time > hopefully it will be laid out better) > > The fix is to initialise the self.change_form_template to None *every* > time ModelAdmin.c

[Solved] Re: How can I refresh admin_urls

2019-02-25 Thread Mike Dewhirst
Thank you all for your attention. Kept me going. (another resend this time hopefully it will be laid out better) The fix is to initialise the self.change_form_template to None *every* time ModelAdmin.change_form() is called. If it is None the ModelAdmin.render_change

[Solved] Re: How can I refresh admin_urls

2019-02-25 Thread Mike Dewhirst
Thank you all for your attention. Kept me going. The fix is to initialise the self.change_form_template to None *every* time ModelAdmin.change_form() is called. If it is None the ModelAdmin.render_change_form() method will dynamically create the model instance change form. Otherwise it uses th

Issue with model method (Solved)

2018-12-13 Thread Felix Lazaro Carbonell
I beg your pardon. It was my mistake in a functional test. I missed part of the data needed to make it work correctly. Thank you all. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: [SOLVED] primary key auto increment with PostgreSQL and non Django standard column name

2018-08-06 Thread Aditya Sangam
Naoko I ma facing the problem of updating primary key automatically in django with postgresql database Could you please suggest what need to be done. Do we need to create a sequence for the table to achieve this. Hoping for your reply On Sunday, May 29, 2011 at 8:32:45 PM UTC+5:30, Nao

Solved Re: Decorator function argument woes

2018-04-30 Thread Mike Dewhirst
Stephen Not really solved except I gave up on decorating when I finally "got" it. Thanks again. 1. made two new sub-views for the two scenarios and decorated one of them with login_required 2. factored out all the commonalities into a new undecorated view with the same name

[Solved] Off-topic - venv problem in Windows 8.1

2017-12-05 Thread Mike Dewhirst
On 6/12/2017 10:03 AM, Mike Dewhirst wrote: On 6/12/2017 12:04 AM, Jason wrote: How did you create the virtualenv in the first place? C:\Python36\python -m venv C:\Users\mike\envs\xxct3 I have completely re-venved and it is now working. I can't explain it. I always use a batch file to creat

Solved Re: NoReverseMatch at /registration/password/change/

2017-09-26 Thread NoviceSortOf
Thanks for your reply. >>> Did you add all auth URLs to your URLconf? Thanks, we resolved the problems, by updating auth URLs as you mentioned and then also modifying the related registration html pages, and custom registration views. >> Also, please upgrade to at least Django 1.8 or (pref

[Solved] Re: database tables are not being created

2017-08-09 Thread jjanderson52000
Andreas, Thank you for the help. It turned out my __init__.py file was missing in my migration directories. Once added, everything ran great. Jim On Monday, August 7, 2017 at 3:33:18 PM UTC-4, jjander...@gmail.com wrote: > > > I have been working on a django application for several months, lea

[Solved?] Re: string theory and web woes

2017-04-05 Thread Mike Dewhirst
On 6/04/2017 2:44 PM, Mike Dewhirst wrote: I'm collecting strings from web page sources and storing extracted data in a TextField. If it is done again, it gets added into the TextField. My code goes something like ... If data not in textfield: insert_data(data, textfield) Got it working

SOLVED Erroneous links in my Django URLs - all load the home page -- not a 404 or other error.page

2016-12-22 Thread NoviceSortOf
Thanks that does the job. I'm editing subject to read as 'Solved' - Is this considered best practice in this form? On Thursday, December 22, 2016 at 2:43:23 AM UTC+1, NoviceSortOf wrote: > > > URLs not defined in my urls.py all show my home page and not a 404 missin

Re: Setting up jQuery in debian with virtualenv (SOLVED)

2016-11-12 Thread Gary Roach
Thanks all, I installed libjs-jquery into my active venv directory. It turns out that libjs-jquery actually has 3 different virsions in it . I copied the jquery.js file over to my /static/ file in Eclipse. It works fine. Gary R. On 11/10/2016 10:22 AM, Luis Zárate wrote: Mmm why not just do

Re: resetting table id (SOLVED)

2016-07-04 Thread Javier Guerra Giraldez
On 4 July 2016 at 01:09, Gary Roach wrote: > All of this drove home the fact that db.sqlite3 is no more than a text file > and can be thrown away and recreated any time I like wrong. SQLite keeps the database on a single file, but its nowhere near a "text file". you did truncate to a single by

Re: resetting table id (SOLVED)

2016-07-03 Thread Gary Roach
On 07/03/2016 04:54 PM, James Schneider wrote: On Jul 3, 2016 4:18 PM, "Gary Roach" > wrote: > > Hi all > > > I'm still working on the official django tutorial (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/

Re: ImportError: No module named security(SOLVED)

2016-01-04 Thread Gary Roach
Dead On knbk. I commented out the security line and the problem when poof. Thank you. Gary R. On 01/04/2016 06:29 PM, knbk wrote: Seems like you have SecurityMiddleware in your middleware settings, which wasn't added until 1.8. If you started your project on 1.8+. your default settings file w

[Not solved] formfield_for_foreignkey difficulty

2015-11-26 Thread Mike Dewhirst
On 27/11/2015 8:38 AM, Mike Dewhirst wrote: On 27/11/2015 8:19 AM, Mike Dewhirst wrote: On 26/11/2015 11:24 PM, Mike Dewhirst wrote: I have formfield_for_foreignkey working for a couple of fields in my substance model but find a brick wall when I try to restrict choices in an inline m2m foreign

[Solved] formfield_for_foreignkey difficulty

2015-11-26 Thread Mike Dewhirst
On 27/11/2015 8:19 AM, Mike Dewhirst wrote: On 26/11/2015 11:24 PM, Mike Dewhirst wrote: I have formfield_for_foreignkey working for a couple of fields in my substance model but find a brick wall when I try to restrict choices in an inline m2m foreign key. It was late last night and I forgot t

Re: [SOLVED] Model cache problem

2015-06-26 Thread dragon
On 06/26/2015 08:13 AM, dragon wrote: On 06/25/2015 09:49 PM, Vijay Khemlani wrote: Are you using a ModelChoiceField? https://docs.djangoproject.com/en/1.8/ref/forms/fields/#modelchoicefield Or a normal ChoiceField setting the choices manually? I am using normal Chice field and yes i'm setting

[Partly solved] ModelAdmin.save_as integrity error

2015-06-22 Thread Mike Dewhirst
I commented out the save() method in the Substance model (the master model with a number of 1:1 and 1:n relationships) and it started saving as new successfully. Unfortunately I do a lot of stuff in that save() method so I have to figure out how to do that another way. Mike On 23/06/2015 12:5

Re: how to do a django data migration on a massive Postgres data table (solved)

2015-05-27 Thread Vernon D. Cole
Hmm. Sorry, I think that I sent the download link when I intended the web link. The trailing ".git" made things bad. Try https://gist.github.com/vernondcole/9adedbab1899224a4eaf On Tuesday, May 26, 2015 at 4:51:59 AM UTC-6, aRkadeFR wrote: > > Thanks for the email on the django-user ML. > >

Re: how to do a django data migration on a massive Postgres data table (solved)

2015-05-26 Thread aRkadeFR
Thanks for the email on the django-user ML. I don't see the gist though, is the problem from me? On 05/22/2015 09:09 PM, Vernon D. Cole wrote: Django migrations are run in a single transaction (if your database is capable of doing a rollback of DDL, as PostgreSQL is) so data migrations of larg

Re: how to do a django data migration on a massive Postgres data table (solved)

2015-05-22 Thread Larry Martell
On Fri, May 22, 2015 at 3:09 PM, Vernon D. Cole wrote: > Django migrations are run in a single transaction (if your database is > capable of doing a rollback of DDL, as PostgreSQL is) so data migrations of > large tables become impossible. > > I was able to solve this problem by having the migrati

how to do a django data migration on a massive Postgres data table (solved)

2015-05-22 Thread Vernon D. Cole
Django migrations are run in a single transaction (if your database is capable of doing a rollback of DDL, as PostgreSQL is) so data migrations of large tables become impossible. I was able to solve this problem by having the migration run a no-wait subprocess which performs the data migration

Solved: sidebar menu appears with every click on the main menu item before it disappears

2015-03-30 Thread Behee Trimble
To Whom It May be Helpful: This program was using bigSlide.js library that works like a charm and good to inject sidebar menu. The original developer forgot to apply the css lines. Below are the relevant parts: html file: MENU    ... {% block quicknav %}{% endblock %}

Re: [solved] Migrating to initial migration: "ORA-00955: name is already used by an existing object"

2015-02-24 Thread Carsten Fuchs
Hi all, it seems like I found the culprit, along with a simple solution: https://code.djangoproject.com/ticket/24407 :-) Best regards, Carsten -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Solved: save as new in the Admin with 1:1 inlines causes IntegrityError

2014-10-17 Thread Mike Dewhirst
I discovered a unicode problem related to the degree symbol (°) when running under Python 2.7 and dealt with that. It somehow fixed the IntegrityError. One of those things I guess AWTEW Mike On 15/10/2014 9:40 AM, Mike Dewhirst wrote: Using Django 1.6.7, in the Admin if I change the name of

Re: Error importing dbapi2 (SOLVED)...

2014-08-29 Thread Fred Stluka
I figured it out. Details: I had set environment variable PYTHONPATH to help Django find the sql_server.pyodbc files needed to make a connection to a Microsoft SQL Server DB. This was keeping SQLite from working properly. When I cleared the environment variable, SQLite works fine. I now get n

I solved it...

2014-07-19 Thread Dan Bikle
Hello World again, I debugged my problem. The INSTALL file says this: " AS AN ALTERNATIVE, you can just copy the entire "django" directory to Python's site-packages directory " It should say this: " AS AN ALTERNATIVE, you can just copy the entire "django" directory to Python's site-packages di

Re: [SOLVED] NoReverseMatch at /polls/

2013-09-07 Thread voger
Problem solved. I missed a step in the tutorial where name spacing in the root URLconf was discussed. I still don't understand it completely but the bottom line is that the line number 4 in the file index.html should be replaced with {{ poll.question }} On 09/07/2013 11:29 PM, voger

SOLVED: modelformset_factory not validating multiple forms

2013-08-01 Thread Chris Ryan
I found the problem! The fields were being processed as expected but since I am using the FamilyMember table as the authentication table I needed to include the username and other fields (as hidden). On Thursday, August 1, 2013 9:13:18 AM UTC-4, Chris Ryan wrote: > > Hopefully this is an easy

[solved]Re: Reloading modules during development

2013-05-05 Thread Tim Johnson
* Tim Johnson [130505 12:44]: > * Aljoša Mohorović [130505 11:28]: > > django has development server which autoreloads > > check https://docs.djangoproject.com/en/1.5/ref/django-admin/ > Thanks. However this is very problematic. Don't know how to start > it. > Example : > Project is at /U

[Solved]: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 20/12/2012 10:59am, Mike Dewhirst wrote: On 19/12/2012 11:58pm, Thomas Orozco wrote: Hi, If you have no relationship, I'm a bit at a loss. I think the easier way would be to use a debugger if possible. I think we need to know what field is causing the ValidationError. The line that's causin

[Solved] validation error in Django Admin

2012-12-13 Thread Mike Dewhirst
Thanks Chris It turned out I hadn't read the docs properly. Prior to posting the problem I had tried ... instance.item_pictogram_set.remove(pic) ... to be told the relatedmanager object didn't have a remove attribute when (I thought) it should. So I adjusted the database to make both

Fwd: Noobe alert [solved]

2012-11-17 Thread Gerald Klein
Hi, Yea got it, the nginx static had to be removed from the alias url. thanks -- Forwarded message -- From: Gerald Klein Date: Sat, Nov 17, 2012 at 1:27 PM Subject: Noobe alert To: django-users@googlegroups.com Hi, I finally got a project in Django and I have a "what I hope is

SOLVED: Django 1.3 Admin Changelist column alignment

2012-06-18 Thread kooliah
I solved cloning and renaming the templatetag result_list (the rows builder) and modifying it. It checks if the field is a number and set the class attribute of the tag to "numb", so using the admin css i can change alignment Obviously i had to override change_list.html too to let

Re: 'ascii' codec can't encode character u'\xe4' [solved]

2012-06-14 Thread kenneth gonsalves
a know working solution. they give users a small snippet of httpd.conf which we can edit - I put this line: SetEnv Locale UTF8 and it is working. Thanks for the hints, I now remember that I had solved this problem long ago, but it is so long since I have used apache, that i had forgotten -- reg

Re: Now I know I solved this before, but...

2012-06-04 Thread Nikolas Stevenson-Molnar
The problem is likely in your Python code somewhere. That error usually means that you have some incorrectly (un)indented code. _Nik On 6/4/2012 11:16 AM, Robert Steckroth wrote: > Can anyone explain this on to me. It seams like an easy fix, but > I can't get my fingers on it. Any help is appreci

Now I know I solved this before, but...

2012-06-04 Thread Robert Steckroth
Can anyone explain this on to me. It seams like an easy fix, but I can't get my fingers on it. Any help is appreciated. In template /home/sites/radio_show/radio/serve/templates/registration/activation_email.txt, error at line 5 unindent does not match any outer indentation level 1 {% load i

Re: SOLVED Django 1.3 Ordering by two or more fields workaround ??

2012-06-03 Thread kooliah
Solved working on admin instead of models, in the following way - admin.py-- class SpecialOrderingChangeList(ChangeList): ''' Django 1.3 ordering problem workaround from 1.4 it's enough using ordering var '

[SOLVED] Outputting JSON in Django logs (98% of the way there!)

2012-03-08 Thread Shawn Milochik
It turns out I was just missing quotes around the () for the custom formatter. I just wrote a blog post will a full working example in case anyone else is interested. http://shawnmilo.blogspot.com/2012/03/using-json-logging-in-django-and-python.html -- You received this message because you a

Re: same code runs on two machines and barfs on the third [solved]

2012-02-12 Thread kenneth gonsalves
On Wed, 2012-02-08 at 12:45 +0530, kenneth gonsalves wrote: > On Tue, 2012-02-07 at 19:29 +1100, Mike Dewhirst wrote: > > On 7/02/2012 6:14pm, kenneth gonsalves wrote: > > > On Tue, 2012-02-07 at 08:06 +0100, Babatunde Akinyanmi wrote: > > >> Perhaps you made a change to a model and forgot to syncd

[Solved] collectstatic missing on Linux

2012-01-10 Thread Mike Dewhirst
Thanks guys - I found the problem. It required the following in manage.py ... import os, sys if __name__ == "__main__": SRC_ROOT = os.path.realpath(os.path.dirname(__file__)).replace('\\','/') PROJECT_ROOT = os.path.split(SRC_ROOT)[0].replace('\\','/') sys.path.append(PROJECT_RO

Re: Beginner: how to display the list of records with subrecords? (solved)

2011-11-22 Thread Petr Přikryl
My appology, Javier, > Javier Guerra Giraldez write >>Petr Přikryl wrote: >> I tried the tutorial, and I like it, but it is too much of new things >> for me. > >but all these new things are needed to solve your problem. I did study the tutorial, but I had picked only the things that I could dir

Re: key error in templates - solved

2011-11-12 Thread Evan Reiser
I had the same thing happen to me and this was the only post I found on the internet that mentions it. Note to other people who have this problem: *Be careful passing instances of model objects into celery tasks since they get pickled and your FileField fields will probably be removed via pick

StackedLinein and 404 error [SOLVED]

2011-10-08 Thread EdgarAllenPoe
There was nothing wrong with the code. I just needed to restart my server, and it worked like a charm On Oct 8, 11:15 pm, EdgarAllenPoe wrote: > Working on django tutorial > here:https://docs.djangoproject.com/en/dev/intro/tutorial02/ > and I am stuck where they start the instructions about St

(Solved) Re: Admin inlines suddenly missing?

2011-08-15 Thread Nan
User error (ish). Some data updates we'd made directly to the database had resulted in an invalid foreign key. Lesson learned: don't use MyISAM unless absolutely necessary. On Aug 15, 5:11 pm, Nan wrote: > Further investigation indicates that the template engine is simply > failing to includ

Re: NoReverseMatch for custom admin URLs [SOLVED]

2011-07-30 Thread Martin Tiršel
Sorry, my bad :) I forgot that first argument for patterns() is a string with view name prefix. That was all. Martin On Sat, 30 Jul 2011 11:52:21 +0200, Martin Tiršel wrote: Hi all, the code: class CompanyProfileAdmin(admin.ModelAdmin): list_display = ( '__unicode__',

SOLVED Re: Render nested queryset in a template ?

2011-07-18 Thread kooliah
Thank you On 07/18/2011 11:57 PM, Daniel Roseman wrote: Op maandag 18 juli 2011 20:29:17 UTC+1 schreef kooliah het volgende: I need to render a nested queryset in a template, a classic father/son structure like publisher>dvds>renters, in python code i can use this cod

[solved] virtualenv with dev server

2011-07-14 Thread Mike Dewhirst
Thank you - all four of you were on the money. Taking your advice this is what I did to fix it ... C:\users\miked\py\ssds <-- root C:\users\miked\py\ssds\Lib <-- virtualenv python installation C:\users\miked\py\ssds\Scripts <-- virtualenv python scripts C:\users\miked\py\ssds\src <-- project sou

Re: Django solved tutorial for download??

2011-06-09 Thread Harjot Gill
www.djangoproject.com , this is the official website of django.In this website you will find the solved example of django application. -- 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: Django solved tutorial for download??

2011-06-09 Thread Praveen Krishna R
I don't understand what you mean by "django tutorial solved" There is a tutorial which gets you up and running with django, if you are a beginner. and its here ! https://docs.*django* project.com/en/dev/intro/tutorial01/<https://docs.djangoproject.com/en/dev/intro/tutorial01/&

Django solved tutorial for download??

2011-06-08 Thread Pardini Andres
Hi guys, I am looking for django tutorial solved, for downloading If anyone has a link, please share it :) Cheers!! -- 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@googlegrou

[SOLVED] primary key auto increment with PostgreSQL and non Django standard column name

2011-05-29 Thread Naoko Reeves
I was missing this from schema: ALTER SEQUENCE tablename_colname_seq OWNED BY tablename.colname; Now everything is happy. Thank you! On 5/28/11 8:32 AM, "Naoko Reeves" wrote: > Malcolm, Thank you for your advice! > I changed my model as follows: > poll_key = models.AutoField(primary_key=Tr

Re: Failed to build documentation (solved)

2011-04-20 Thread xeelee
You don't have to update python-sphinx package. Use virtualenv instead. $ mkdir my_env $ virtualenv my_env/bin/activate $ easy_install -U Sphinx Then build package. Now you can exit virtual environment. $ deactivate On 24 Mar, 22:37, Łukasz Rekucki wrote: > On 24 March 2011 20:15, Lic. José M

Re: Failed to build documentation (solved)

2011-03-24 Thread Łukasz Rekucki
On 24 March 2011 20:15, Lic. José M. Rodriguez Bacallao wrote: > so, no one? > > On Thu, Mar 24, 2011 at 11:42 AM, Lic. José M. Rodriguez Bacallao > wrote: >> hey, I am using ubuntu 10.10, do I really need to update Sphinx to >> build documentation? >> Yes, you do. -- Łukasz Rekucki -- You r

Re: Failed to build documentation (solved)

2011-03-24 Thread Lic . José M . Rodriguez Bacallao
so, no one? On Thu, Mar 24, 2011 at 11:42 AM, Lic. José M. Rodriguez Bacallao wrote: > hey, I am using ubuntu 10.10, do I really need to update Sphinx to > build documentation? > > On Thu, Mar 10, 2011 at 3:51 AM, Thomas Guettler wrote: >> Hi, >> >> the problem is

Re: Failed to build documentation (solved)

2011-03-24 Thread Lic . José M . Rodriguez Bacallao
hey, I am using ubuntu 10.10, do I really need to update Sphinx to build documentation? On Thu, Mar 10, 2011 at 3:51 AM, Thomas Guettler wrote: > Hi, > > the problem is solved, this is just for other people who have the same error. > > When you try to build the documentat

Re: AttributeError at / polls / in Django Tutorial-Solved

2011-03-10 Thread Alberto Morales Fernández
On 03/10/2011 03:28 AM, delegb...@dudupay.com wrote: The spelling is what the problem is. You have typed 'objetcs' instead of 'objects'. Always study the error trace very well. Best regards. Sent from my BlackBerry wireless device from MTN Ups!!, sorry, I did not see "objects" when I wrote i

Failed to build documentation (solved)

2011-03-10 Thread Thomas Guettler
Hi, the problem is solved, this is just for other people who have the same error. When you try to build the documentation and get the following error: File "/home/user/_django-trunk/docs/_ext/djangodocs.py", line 86, in run xrefs = roles.XRefRole()('doc', linktext, l

Solved: Re: Still mystified by [not a] mod_wsgi traceback ...

2011-01-03 Thread Stephen Waterbury
Ach, permissions problem. After I disabled the error message in d.c.a.m.RemoteUserMiddleware, I got an error message about the database not being writable -- I'm using sqlite and forgot that the *directory* containing the db file has to be writable (for the temp file). Doh! So the real problem

Re: template concat of string trouble (solved)

2010-12-20 Thread Tonton
{% autoescape *OFF* %} {{ script }} {% endautoescape %} On Mon, Dec 20, 2010 at 3:41 PM, Tonton wrote: > yes i am reading on this > > but this > {{script|escapejs}} seems to not work > i investigate more > > thanks > > > On Mon, Dec 20, 2010 at 3:37 PM, Tom Evans wrote: > >> On Mon, Dec

Re: Call a function after a model with inlines is created [solved]

2010-11-08 Thread Martin Tiršel
On Sun, 31 Oct 2010 20:15:19 +0100, Daniel Roseman wrote: On Oct 31, 4:46 pm, Martin Tiršel wrote: If this is only needed for the admin, you probably want to override the ModelAdmin's response_add method. This is called after the add form has been processed and all the resulting objects sav

[solved] Re: Can't uninstall debug toolbar?

2010-10-22 Thread ringemup
Never mind, restarting Apache did the trick, although I have no clue why that was necessary. On Oct 22, 1:01 pm, ringemup wrote: > For some reason, even though I've removed it from my INSTALLED_APPS > and MIDDLEWARE_CLASSES, and touched my wsgi file, the debug toolbar > just won't go away.  I'm

[SOLVED] Re: Multiple Check Boxes - Single Choice w/ CheckboxSelectMultiple?

2010-10-09 Thread NoviceSortOf
Thanks Russ, works like a charm. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For m

Re: Where and how should I write translations [SOLVED]

2010-09-05 Thread Martin Tiršel
I solved it by creating a new python file with: # -*- coding: utf-8 -*- from django.utils.translation import ugettext as _ translation_strings = [ _(u'string'), _(u'another string'), ... ] So easy :) Martin On Thu, 02 Sep 2010 13:33:36 +0200, Martin Tirše

[Really solved] Re: NoReverseMatch under mod_wsgi with custom admin.get_urls()

2010-08-19 Thread ringemup
Sorry for the spam, but just wanted to note that I'd solved the problem. I was using the wrong method of namespacing. The following worked properly: rev = reverse('staff_admin:account_wizard') I'm wondering if there's a better way to demonstrate the usage in the

[Solved] Re: NoReverseMatch under mod_wsgi with custom admin.get_urls()

2010-08-19 Thread ringemup
Never mind, namespacing the reverse() calls and {% url %} tags seems to have fixed things. On Aug 19, 4:32 pm, ringemup wrote: > I'm using a custom admin.get_urls() method.  It was working flawlessly > on the development server, but now under mod_wsgi I'm getting > NoReverseMatch errors almost an

Re: query evaluation problem [SOLVED]

2010-08-16 Thread bagheera
Dnia 16-08-2010 o 19:25:50 Alec Shaner napisał(a): Regarding your issue with get_next, could be because you're invoking the method when you define default=get_next(). Try it with just the bare method name get_next. You could also use the aggregate function instead of creating a new model:

[solved] Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
> > I got another clue, it seems that the python process runs out of > > file handles. After 10k requests (via ab -c 1 -n 1) i got > > several "not found" io exceptions like "/dev/urandom not found", > Some tempfile that isn't getting closed? Watch your /tmp size, for > instance. Normally if y

[SOLVED] Re: Filtering within a ModelForm

2010-07-30 Thread Casey S. Greene
Hi Derek, Thanks for your help -- I had tried both of those but couldn't get them to work with generic views. In the end I just abandoned the generic view and used the __init__() approach and things worked. -- Casey On 07/28/2010 09:35 AM, derek wrote: On Jul 26, 6:52 pm, "Casey S. Greene"

[SOLVED] Re: Django Dev server doesn't reflect changes

2010-07-30 Thread barun
On Jul 30, 10:33 am, Samuel Baldwin wrote: > Try clearing any server or browser caches first. > > -- > Samuel Baldwin - logik.li -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.co

[SOLVED]: Caught TypeError while rendering: unhashable type: 'dict'

2010-07-26 Thread Colleen A Josephson
Sorry about the double e-mail, not sure what happened there. I ended up fixing the issue myself; I wasn't fully understanding the structure of patterns() in urls.py. I moved the 'SSL': True into the other dictionary so the line now looks like: (r'^login/', 'django.contrib.auth.views.login', {'t

Re: Help with localization [SOLVED]

2010-07-26 Thread Martin Tiršel
On Mon, 26 Jul 2010 03:46:10 +0200, Lachlan Musicman wrote: On Mon, Jul 26, 2010 at 11:16, Martin Tiršel wrote: Gah, my eyes were closed. Have you also added the appropriate Middleware product? As you see here: http://docs.djangoproject.com/en/dev/topics/i18n/deployment/#topics-i18n-depl

[Solved] Re: Not reflecting MEDIA_URL value

2010-07-20 Thread barun
Hurray! I had missed this small thing and banging my head for the last few hours! Thanks a lot to you! On Jul 20, 4:18 pm, David De La Harpe Golden wrote: > On 20/07/10 12:11, barun wrote: > > > > > [gallery/views.py] > > def index(request): > >         return render_to_response('base.html', {})

Re: primary key problem [solved]

2010-07-19 Thread Franklin Einspruch
The client's manual insertion of table id numbers, which was necessary to make the admin panel work with the table ids set to IntegerField in models.py, caused the sequence behind the serial field to go out of whack in postgres. This had to be fixed in postgres. SELECT SETVAL ('primary_key_seq', 3

  1   2   3   >