Try
>> psycopg2-binary
Best,
Vinay Bagare
Sent from my iPhone
> On Sep 15, 2021, at 12:15 PM, Kasper Laudrup wrote:
>
> On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:
>> Hello,
>> I need psycopg2 for postgres database in django. While
Thank you soo much for the help it's working now ...
On Thu, Apr 9, 2020, 11:02 PM JEGATHEESWARAN SUNDARAVADIVEL <
jagatheesjo...@gmail.com> wrote:
> In your urlpatterns remove $/ just keep empty “ “ for views.homepage
>
> Thanks
> Jegatheeswaran
>
> On Thu, 9 A
Hello all !
I am new in Django technology.
I am trying to make a small project just to hands on django , but
unfortunately i am getting error
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/
Using the URLconf defined in durganewsproject.urls, Django tried these URL
Did you assigned an url for that view?
Try doing so and run server and go to the assigned url.
On Wed, 6 Mar 2019, 00:02 , wrote:
> how can i redirect to Login.html page
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe fr
tents of the tables using
the SQLite manager client. On exit from the with transaction.atomic() which
wrapped the DELETE FROM statements, the records are still in the tables!
Can anyone tell me what's going on, or point to some other way of
initialising a test database *completely* from a fixt
uter.
>
OK, thanks for the suggestion - you've been very helpful, as always. I'll
mull things over and see what's the best for the specifics of the specific
project.
Regards,
Vinay Sajip
--
You received this message because you are subscribed to the Google Groups
"Django
nvocation, when that
value is different to whatever settings.DATABASES['default'] is. A quick
look at the builtin management commands shows there's a lot of usage of
connections[options.get('database')] going on, and yet externally written
management commands aren't e
xpect that behaviour from
transaction.atomic(), of course, but backwards compatibility is a
constraint I'm aware of :-)
Regards,
Vinay Sajip
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and s
x27;default'] = settings.DATABASES[alias]
just before the with block, and it had no effect - the result was the same
- so I took it out. How else are you supposed to override the default
database?
Regards,
Vinay Sajip
--
You received this message because you are subscribed to the
oked? In a real case the atomic block might be
manipulating lots of models in nested code, and I can't see that it's
practical to call using() for every model. Somewhere, it looks like Django
code is caching a connection based on what settings.DATABASES['default']
was when settin
On Jan 30, 1:36 am, Malcolm Tredinnick
wrote:
> On Wed, 2009-01-28 at 23:21 -0800, Vinay Sajip wrote:
>
> [...]
>
> > I was hoping there was another way. Of course subclassing's not hard
> > to do, but it means doing it for every field class. I was looking at
&
On Jan 29, 12:35 am, Malcolm Tredinnick
wrote:
> On Wed, 2009-01-28 at 04:27 -0800, Vinay Sajip wrote:
> > I'd like to attach some user-defined meta-information to individual
> > model fields and have it also be available in the corresponding form
> > fields. Ideally
=100, info=some_object)
active = models.BooleanField(info=some_other_object)
Ideally, this information would be available in the corresponding form
field.
What's the best way of achieving this DRY-ly?
Regards,
Vinay Sajip
--~--~-~--~~~---~--~~
You received this mess
never need be concerned about where their logging output is going (in
fact they shouldn't hardcode this type of information, especially if
they are meant to be reusable).
Regards,
Vinay Sajip
--~--~-~--~~~---~--~~
You received this message because you are su
eted the download
(accounting for the OK PDF file) but failed to rename it, you might
get the result which you observed.
I use a slightly different content-disposition, indicating explicitly
that it's an attachment:
response['Content-Disposition
photologue.
Thanks
On Sep 15, 1:23 am, David Larlet <[EMAIL PROTECTED]> wrote:
> Le 15 sept. 08 à 07:16, David Zhou a écrit :
>
> > On Sep 15, 2008, at 1:01 AM, vinay wrote:
>
> >> File "/usr/lib/python2.5/site-packages/django/core/files/
> >>
www.pdfforge.org/
http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/Setting_up_a_PDF_printer_in_CUPS_in_my_case_in_Slackware
Of course with a PDF printer you don't get full control of the PDF
produced. For better control, ReportLab is the ticket, a
h
raise NotImplementedError("This backend doesn't support absolute
paths.")
NotImplementedError: This backend doesn't support absolute paths.
Exception Location: /usr/lib/python2.5/site-packages/django/template/
debug.py in render_node, line 81
Python Executable: /usr
this time we'll also produce a alternative version which will
> be more suited for non-colour printing.
>
Nice cheat sheet. Hope it's not too late to offer a suggestion - it
would be useful to have the forloop special variables in the cheat
sheet. Not sure where you'll fi
ces.
http://code.djangoproject.com/attachment/ticket/3591/app_labels.10.diff
All tests (runtests.py) passed. To those of you interested in custom
app labels and verbose app names for the admin, please try out this
patch and give some feedback on whether it works for you!
Regards,
V
you can avoid user.get_profile().attr and use user.attr
instead.
Regards,
Vinay Sajip
--~--~-~--~~~---~--~~
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
odel. Does
> anyone agree with this?
That'll probably be possible if and when we have a more generalized
framework for object inheritance - then you could inherit from the
User and add fields in the subclass.
Regards,
Vinay
--~--~-~--~~~---~--~~
You rece
d.
[EMAIL PROTECTED]:~$ python
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
It'
access the static site directly and try to guess filenames.
Also, would the static site be available to crawlers? The only sure-
fire way of providing security would seem to be to accept the cost of
handling the image I/O on the Django site.
Regards,
Vinay
--~--~-~--~~--
Are you looking for contract developers, permanent developers or
either?
--~--~-~--~~~---~--~~
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 un
On May 11, 4:20 pm, Maxim Bodyansky <[EMAIL PROTECTED]> wrote:
> Hmmm. It just works. And i18n for module names works too :)
> Many-many thanks, Ivan :)
Это не Иван, это - Vinay
--~--~-~--~~~---~--~~
You received this message because you are subsc
On May 11, 2:44 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> it doesn't look too bad from a quick scan. So now is a good time to
> start getting real-world feedback and you guys can keep Vinay busy by
> finding all the problems with it. :-)
Yes indeed! I'm intere
other language), use this patch:
http://code.djangoproject.com/attachment/ticket/3591/app_labels.5.diff
Then, run make-messages.py, update the translations in the .po files,
run compile-messages.py and you should be able to show
internationalized app names and
On May 9, 7:21 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote:
> It appears not. Just to see if it would work, I tried just adding
> overriding __getattribute__ (which just calls the superclass
> behaviour) and it causes some unexpected behaviour in the unit tests.
False alarm - it w
On May 9, 6:37 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote:
> part of the user model. Is the intention just to avoid saying
> user.get_profile().xxx? Can't this be done by judiciously overriding
> __getattribute__ in User, to delegate to a profile if one is defined?
It appe
xxx? Can't this be done by judiciously overriding
__getattribute__ in User, to delegate to a profile if one is defined?
Regards,
Vinay Sajip
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&quo
:
I believe this is the same error as logged in ticket #3954, for which
a fix has been checked in (changeset #5102).
Regards,
Vinay Sajip
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
n macOSX. I
> have tested on Ubuntu and I get a similar error. Is it a bug?
>
It's logged on the tracker - see
http://code.djangoproject.com/ticket/3954
The good news is, it's a one-line patch - there's a missing call to
disable_termc
On Apr 8, 2:01 pm, "Deryck Hodge" <[EMAIL PROTECTED]> wrote:
> On 4/8/07, Vinay Sajip <[EMAIL PROTECTED]> wrote:
>
> I have a logger setup for use at work, and I control it via a
> LOG_LEVEL setting in settings.py. I don't have logging statements
> t
call a model-class invariant
method to check if, from the model point of view, the model instance
is valid. (Note that the model point of view can be stricter and also
more complex than database constraints can easily capture.) If the
invariant fails, an exception can be thrown, and caught in the vi
ge.
I'd be happy to submit a patch - just wanted to canvass opinion here
before raising a ticket.
Cheers,
Vinay Sajip
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
would appreciate your feedback.
Thanks,
Vinay Sajip
--~--~-~--~~~---~--~~
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 unsubscri
ynchronization, model definition or instance
> instantiation).
Thanks Russ, I figured it out. It didn't really need to be done on
module load - I was justy trying to do it as early as possible.
Anyway, model definition time is fine, and when I moved the code from
__init__.
happens):
[EMAIL PROTECTED]:~/projects/mysite$ ./manage.py diffsettings
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = '/home/vinay/projects/mysite.db'
DEBUG = True
INSTALLED_APPS = ['django.contrib.auth',
'django.contrib.contenttypes',
'dja
39 matches
Mail list logo