Re: Added new column to model and run migrations but not applied to database table

2021-07-20 Thread Sebastian Jung
Is in settings.py also in installed app? Without that migrations don't work Salima Begum schrieb am Di., 20. Juli 2021, 19:00: > Hi , > Thank you for your responses. > I have tried all the ways Which you people suggested I am not getting any > error while running makemigrations or migrate and

Re: Hiii Every one

2021-07-15 Thread Sebastian Jung
Hello, In germany we have a provider where you get a root server for 7€ with 2 cores. Name is netcup. Linux is allready preinstalled... This server are fast and much cheaper than amazon server Regards Mahendra schrieb am Do., 15. Juli 2021, 18:38: > Which is the best hosting platform for

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread Sebastian Jung
Hello Peter, ich would make it with a signal. Here a another example to use a post save signal: from django.db.models.signals import post_savefrom django.dispatch import receiver class TransactionDetail(models.Model): product = models.ForeignKey(Product) # method for

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Sebastian Jung
Hello Mike, i don't understand why you want make a delete from a distict... Then you delete random entrys. When you want do delete dupletes then this is a wrong method to delete dupletes... Regards Am Fr., 2. Juli 2021 um 08:03 Uhr schrieb Mike Dewhirst < mi...@dewhirst.com.au>: > Trying to

Re: Help

2021-06-15 Thread Sebastian Jung
Good luck to be an expert in Django in only one Montag Inside Believer schrieb am Mo., 7. Juni 2021, 18:21: > Sir I'm internee i know python my company has assigned me bugs to resolve > in live project but i have not didn't experience of Django. Anyone who can > help me how to find bugs

Re: How can i start to learn django?

2021-06-15 Thread Sebastian Jung
At beginnig Django Girls Tutorial ist a good start in my opinon https://tutorial.djangogirls.org/en/ anil9...@gmail.com schrieb am Di., 15. Juni 2021, 14:27: > You can try freecodecamp.org's youtube channel if you like to learn from > videos else Django docs are also great. > > On Sunday, 13

Re: Adding Two Models In Django

2021-06-15 Thread Sebastian Jung
Hello, You create all modelfields inkl. Total sum and after user submit Form with 2 fields in save() Method you sum both fields together ans write this in total field... Regards Ridwan Adeyemo schrieb am Di., 15. Juni 2021, 20:34: > How do I add two models together in the database, two

Re: CHOICES

2021-06-13 Thread Sebastian Jung
Hello, i think this is the right answer: from django.db.models import Sum ModelName.objects.filter(field_name__isnull=True).aggregate(Sum('field_name'))# returns {'field_name__sum': 1000} for example Am So., 13. Juni 2021 um 12:04 Uhr schrieb www.forum-gh.com < ladamo...@gmail.com>: > Hello

Re: My first django project works in mylaptop, locally, but not when deployed

2021-06-08 Thread Sebastian Jung
Hello Venezuela, please open url http://127.0.0.1:8000/hola... this is think works... Regards Am Di., 8. Juni 2021 um 22:24 Uhr schrieb Douglas Lopez < douglaslopez2...@gmail.com>: > Maybe some body can help on this. > > I have a very simple apps ("Hello work"). See mysite.zip attached. > Then

Re: Sending emails with a name over 75 characters

2021-06-07 Thread Sebastian Jung
Hello Nicolás, i would take another smtp python client to do that. But i am not 100% sure that you don't have here the same problem... Regards Am Mo., 7. Juni 2021 um 17:46 Uhr schrieb Nicolás Gustavo Bruna < bruna.nicolasgust...@gmail.com>: > Hello, how are you? > > I am having trouble

Re: use of annotate in django query

2021-06-02 Thread Sebastian Jung
Hi Eugene, Please make Print(report.query) then you get SQL querys and Most of time i get an Idea what's wrong Regards Eugene TUYIZERE schrieb am Mi., 2. Juni 2021, 21:41: > Dear Team, > > I need help. I am working on a project where one of the tables is about > requests. I want to have a

Re: Filtering OR-combined queries

2021-04-30 Thread Sebastian Jung
Take q for or Filterung: https://stackoverflow.com/questions/6567831/how-to-perform-or-condition-in-django-queryset Shaheed Haque schrieb am Fr., 30. Apr. 2021, 02:43: > Hi, > > I have a query which ORs some selects on a single table together like this: > > jurisdiction = 'aaa' > qs =

Re: module not found

2021-04-27 Thread Sebastian Jung
Hello, You Install Django package with pip Install but you need with python3 pip3 instead of pip. Regards Théodore KOSSI schrieb am Mo., 26. Apr. 2021, 13:40: > can you help me for this problem? > > -- > You received this message because you are subscribed to the Google Groups > "Django

Racing condition with pre_delete

2021-04-25 Thread Sebastian Haase
reliably? I use Postgres as db-backend. Thx, Sebastian. -- 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 django-users+unsubscr...@googlegroups.co

Re: Create email template with the click of a button

2021-04-17 Thread Sebastian Jung
Hello, Emailfield is nothing other then a normal InputField but later with a special validator. I would take InputField then write your own Validator where you split input commasparated an validate every address with a regex.

Re: getattr on related not possible?

2021-04-15 Thread Sebastian Jung
ate_name = 'test.html' > form_class = Boxform > success_url = reverse_lazy('Boxlistview') > > Now i get a Exception: > > Exception Value: Box has no tabslink. > > /home/sebastian/PycharmProjects/test3/test4/models.py, line 22, in __init__ > getattr(sel

Re: Create email template with the click of a button

2021-03-23 Thread Sebastian Jung
I have implement it as a bootstrap modal where a Form with fields are shown. When User click submit the Page load New but If you don't want that Page is load New you need a Ajax jquery submit to django Kristen schrieb am Mo., 22. März 2021, 15:46: > Hello, > > Correct. I want to the user to

Re: Create email template with the click of a button

2021-03-21 Thread Sebastian Jung
Hello, This is dir Django a relativ easy Task. You create a Form with fields Like to,CC,BCC,subject,Text message, HTML Message and Render These Form. Then User enter all Data and when it submit you get the Post Data And submit IT with djangos Sendmail

Re: Smaller project that would be payed

2021-03-05 Thread Sebastian Jung
Hello Ahmed, I am well but implementation new widget is not so easy. I hope that you want to help me. Regards Am Fr., 5. März 2021 um 11:11 Uhr schrieb Ahmed omar miladi < ahmedomarmil...@gmail.com>: > hello sebasty how are you? > > > On Fri, 5 Mar 2021 at 16:31, sebasti...@gmail.com < >

Re: django-filters many to many

2021-02-15 Thread Sebastian Jung
Yeah but this doesn't work. I describe IT in my Last Post why Regards MOHIT DILIP MAKWANA schrieb am Mo., 15. Feb. 2021, 15:22: > Hey, > You can add a dunder method for your "Productinterests" model to > return the name of the object instead of the name of model. > It involves the use

Re: django-filters many to many

2021-02-15 Thread Sebastian Jung
Hello, now it shows on frontend the name. Problem is, that in value also string is instead id. For example: Test but this must be: Test How can i change this? Regards Am Mo., 15. Feb. 2021 um 05:32 Uhr schrieb Agni Venus :

Re: django-filters many to many

2021-02-15 Thread Sebastian Jung
Good morning, Yeah it works. Thank you Agni Venus schrieb am Mo., 15. Feb. 2021, 05:32: > Put this inside and below if your model > > > > Def __str__(self): > return self.what-ever-name-you-want > > On Mon, 15 Feb, 2021, 10:01 am Agni Venus, wrote: > >> Put this below the model... >> Add >>

Re: Postgresql and mysql

2020-05-23 Thread Sebastian Jung
Hey you can Import Files on a Terminal with sudo -u postgres psql < File.txt Salima Begum schrieb am Mo., 18. Mai 2020, 13:50: > Hi , > Mysql query which we used previously now we moved to postgresql, > Here is the below query in mysql , Can anyone help me to write > similar query in

Re: Database audit fields in Django

2020-05-22 Thread Sebastian Jung
Hello, You must create it over models.py. please Take a Look Here https://stackoverflow.com/questions/2771676/django-datetime-issues-default-datetime-now Another field Like Lastchangefromuser you must created it AS onetoone field in models.py and in Views you can Insert requests.user to fill

Allauth if social login

2020-05-22 Thread Sebastian Jung
Hello, On my website there are a menu item changepassword. Users can login normal over django and over allauth with social accounts. When user is login over social account i want to disable menu item change password. How can i find out that user is login with an allauth social account in

Re: Please help me to solve the error

2019-09-01 Thread Sebastian Jung
Hello, You must create another url.py under your App polls. Regards Manas Sanas schrieb am So., 1. Sep. 2019, 15:37: > There is an error when i add url to url.py. The url.py file is as follow- > from django.contrib import admin > from django.urls import path, include > > > urlpatterns = [ >

Show all images per Profile

2019-08-11 Thread Sebastian Jung
Hello, i have a extend User Model like this: class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) telefon = encrypt(models.CharField(max_length=70,default="",null=True)) and a class with documents incl. fotos: class Document(models.Model):

Only for specific region

2019-07-29 Thread Sebastian Jung
Hello, I want that my Website only German user can Open it and another User from Others Region a template Show, that they Not live in Germany. Regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

E-Mail Client Django

2019-07-15 Thread Sebastian Jung
Hello, i want a full complete E-Mail client like https://www.mailpile.is/ but in django. I need only from mailpile a view with template with email directories on left side and in rest with a list with date and subject. When user click on email then on bottom open detailview from email. And i

Docker: NGINX, Postgres, Django, Static, Media Files

2019-07-14 Thread Sebastian Jung
Hello, i want i complete ready Docker Container for production that accept all Host of wourld on port 80. I want a docker container for Nginx another for Postgres another for Django and static Files and another container for Media Files. I have not enought experience to get a manual like this:

Re: Django Login Secret key

2019-07-10 Thread Sebastian Jung
I encrypt several fields in Database. Now it's possible that a Hacker get Database and settings.py. i want Maximum Security and i think when User at Login Page Input Secret Key that ist optimal. Also i want AS SaaS No Access to Data in database because Data ist high Security. -- You received

Django Login Secret key

2019-07-09 Thread Sebastian Jung
Hello, I want in my Login Page a further field Secret Key. This Input ist replacement dir Secret Key in settings.py. Ist this possible? Can someone explain me how? Regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: action in a form

2019-06-24 Thread Sebastian Jung
You send your Form to function journal_overview_view. There are nothing with save() Regards Kai Kobschätzki schrieb am Mo., 24. Juni 2019, 21:14: > Hi Sebastian, > > here is the code: > > urls.py: > > from django.contrib import admin > from django.urls import path

Re: action in a form

2019-06-24 Thread Sebastian Jung
. > > Greetings > bengoshi > > > Am Sonntag, 23. Juni 2019 19:31:05 UTC+2 schrieb Sipum: >> >> Hello, >> >> In action use the url associated with that view then it will work for >> you. >> If not then kindly tell what errors you are getting. >>

Re: action in a form

2019-06-23 Thread Sebastian Jung
Hello, You must Put in Action not a Name from a function. You must Put a url dir example action="/newurl/" And in your url a Link from /newurl/ to the function Regards bengoshi schrieb am So., 23. Juni 2019, 17:57: > Hi, > I tried to write a form: > > ### > > {% extends 'base.html' %} > {%

Re: Question about makemigrations

2019-06-21 Thread Sebastian Jung
Hello, Do you make python3 manage.py migrate after makemigrations? Regards Martin Kong schrieb am Fr., 21. Juni 2019, 13:25: > Hello > I am new to django, and i am following the tutorial provide in github, > from the tutorial. > The tutorial I am following is >

call a view several times in another view

2019-06-18 Thread Sebastian Jung
Hello, I have a view like this: def secondmethod(request,entry): if request.method='POST': return request.POST.get('selection') render(request,'eintrag.html','entry':entry) def test(request): if request.method='POST': queryresult = model.objects.all() for

Multitentant login

2019-06-05 Thread Sebastian Jung
Hello, i have a Login Form with 3 Fields: Mandatename, Username and Password. Now the user login now with a Mandatename. There are a global database where there are a relation between mandate name and a further database. All Querys now from this User goes then to this database. Example: User

Re: Fix docs for model.save() with update_fields specified and auto_now field in model

2019-03-28 Thread Sebastian Haase
- but if it did not exist, the given value is ignored, and the current time is used instead ... very strange if you ask me... Cheers, Sebastian On Mon, Mar 25, 2019 at 4:34 PM Sebastian Haase wrote: > There are of course stackoverflow postings -e.g. > https://stackoverflow.com/questions/17

Re: Fix docs for model.save() with update_fields specified and auto_now field in model

2019-03-25 Thread Sebastian Haase
There are of course stackoverflow postings -e.g. https://stackoverflow.com/questions/17474057/enforce-auto-now-when-using-saveupdate-fields - is almost 6 years old. On Monday, March 25, 2019 at 4:30:57 PM UTC+1, Sebastian Haase wrote: > > Hi, > in section "Specifying which

Fix docs for model.save() with update_fields specified and auto_now field in model

2019-03-25 Thread Sebastian Haase
n tests with Django 2.1. Than this should be more prominently stated in the documentation. Thanks for Django. Sebastian -- 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,

Re: Too many SQL variable

2019-02-18 Thread Sebastian Henschel
E_NUMBER,size) interface. --- Maybe you can put a call to this interface into a startup script somewhere? Cheers, -- Sebastian Henschel Softwareentwickler Passivhaus Institut http://passiv.de -- You received this message because you are subscribed to the Google Groups "Django users" group

Messages without text in the messages framework

2019-01-21 Thread Sebastian Lechner
nother way to send a message without text (but a number of tags) with the messages framework? Best regards Sebastian -- 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

Re: Django Channels: long running async function and where to save ORM object

2018-07-16 Thread Sebastian Haase
Thanks for the reply. Should I still use async code inside that worker process ? While developing I simply do arun_serveron the command line -- then I would always have to do arun_worker in addition -- right ? -Sebastian On Mon, Jul 16, 2018 at 7:05 PM, Andrew Godwin wrote

Django Channels: long running async function and where to save ORM object

2018-07-15 Thread Sebastian Haase
asyncio.event) from any websocket consumer: QUESTION: What is the best place to store that Task object ? Again with `runserver` I can just use a global module-level `dict` to keep those Task objects. The whole async experience is really twisting my mind and interesting at the same time ;-) Re

Re: help with the poll application." Writing your first Django app".

2018-02-23 Thread Sebastian Saade
thanks for the reply El miércoles, 21 de febrero de 2018, 9:17:48 (UTC-3), Sebastian Saade escribió: > > > <https://lh3.googleusercontent.com/-gRALjS6dNAA/Wozoxoms1_I/O9s/nD-tAnDXDk4tgfcbca5d1PoHhc5doeYkACLcBGAs/s1600/Captura%2Bde%2Bpantalla%2Bde%2B2018-02-21%2B

help with the poll application." Writing your first Django app".

2018-02-21 Thread Sebastian Saade
Hello, I'm writing for help. I'm starting to get into Django's world. Testing the tutorial of the Django documentation

Will asgi become a PEP like wsgi is ?

2017-03-11 Thread Sebastian Haase
to their respect "importance" to the python community? Especially under the consideration that real-time web applications (i.e. HTML5 websockets) is getting more and more important. Regards, Sebastian -- You received this message because you are subscribed to the Google Groups "Djan

How to use password_change function from django.contrib.auth.views

2016-06-27 Thread Juan Sebastian Avila Rodriguez
I tried to implement the password_change view but is not working. I only add the code below to the urls.py: from django.contrib.auth import views as auth_views ... url( r'^change-password/$', auth_views.password_change, name='change_password' ), url(

Problem at server startup

2015-03-27 Thread Sebastian Andres Guerra Montecino
Hi everyone, i'm just started on django... and i have a problem :(. I install django on windows (with Setuptools and PIP, according to the documentation), create a new project, use migrate but throws me a mistake: C:\Users\Kompressor\Documents\lalolando>python manage.py runserver 8080

Django data replication example

2014-12-01 Thread Sebastian M Cheung
Hi, Anyone worked on Django data replication project? Please comment your experiences or links Thanks Sebastian -- 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, sen

Possible error at usage of reverse URL in templates.

2014-06-21 Thread Sebastian Piskorski
I'd like to make sure that this is an error not the feature. I use following code in template {{ player.id }} : "{{ player.name}}" And in urls.py everything goes fine with those rules: 1. url(r'^player/select/(?P\d+)/$', myapp.views.player.select, name="player-select"), result URL is:

Re: Adding Objects to Query Set

2013-12-16 Thread Sebastian Morkisch
get_queryset(self): return Project.objects.filter(owner=self.request.user.id) <-- see that id? Best regards, Sebastian > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Re: Making sure I'm not missing out on some must have Django apps

2013-12-15 Thread Sebastian Morkisch
Some short description of these plugins are appreciated. Maybe a link? Am Sonntag, 15. Dezember 2013 17:43:32 UTC+1 schrieb Some Developer: > > Right so it has been quite awhile since I updated my list of must have > Django apps. I was wondering if anyone had any suggestions? > > Currently I

Error while deploying django with mod wsgi

2013-11-18 Thread Sebastian Clemens
Hello, here's my traceback, I use a virtualenv running django. [Mon Nov 18 17:40:03 2013] [error] [client 79.205.192.140] ServerName: > 'sebastian-clemens.de' > [Mon Nov 18 17:40:03 2013] [error] [client 79.205.192.140] DocumentRoot: > '/var/www/vhosts/sebastian-clemens.de/httpdocs

Re: Advanced Tutorial (how to write reusable app), last step does not work

2013-10-10 Thread Sebastian Wade
hi,guys u should read this content: https://docs.djangoproject.com/en/1.0/intro/tutorial04/ > We’re using two generic views here: object_list() and object_detail(). > Respectively, those two views abstract the concepts of “display a list of > objects” and “display a detail page for a

Re: Advanced Tutorial (how to write reusable app), last step does not work

2013-10-10 Thread Sebastian Wade
hi, guys hoped this may help you. https://docs.djangoproject.com/en/1.0/intro/tutorial04/ > We’re using two generic views here: object_list() and object_detail(). > Respectively, those two views abstract the concepts of “display a list of > objects” and “display a detail page for a particular

CsrfViewMiddleware removes other cookies

2013-09-13 Thread Sebastian Haase
request.META["CSRF_COOKIE_USED"] = True in csrf.py -> get_token(request) it also works for me. Any help or comments appreciated, Thanks, Sebastian Haase -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

django-shop bitcoin plugin

2013-09-03 Thread sebastian
/django-shop-bitpagos/0.1 The source code is hosted at github: https://github.com/BitPagos/django-shop-bitcoin Feedback is welcome! Thanks, Sebastian www.bitpagos.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

ForeignKey field access appears to be lazy evaluated

2013-07-12 Thread Sebastian Haase
: item.prevSibling.nextSibling = ItemModel.objects.get(pk=item.nextSibling.pk) But that did not make any difference Any enlightenment would be very welcome. Thanks, Sebastian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: get django with ftp

2013-06-21 Thread Sebastian Goll
load/1.5.1/tarball/ to download it via HTTP. Sebastian. -- 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 django-users+unsubscr...@googlegroups.com. To po

Re: I18N URL patterns and wsgi

2013-03-04 Thread Sebastian Wiesinger
My urls.py looks like this: from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.conf.urls.i18n import i18n_patterns import settings urlpatterns = i18n_patterns('', url(r'^request/?$',

I18N URL patterns and wsgi

2013-03-04 Thread Sebastian Wiesinger
. It changed the URLs to: http://host//subdir/django-app Which of course does not work. I expected it to do something like: http://host/subdir//django-app Am I doing something wrong? I can't find out how to change that behaviour. Regards Sebastian -- You received this message because you

Re: TemplateResponse and json

2012-09-17 Thread Sebastian Henschel
return json.dumps(rendered_template) cheers, Sebastian -- Sebastian Henschel, Python Developer Web txtr GmbH | Rosenthaler Str. 13 | 10119 Berlin | Germany -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Button action to delete files from server

2012-09-17 Thread Sebastian Henschel
rect to another URL instead... Can somebody please help me to create an action to delete files? hth, Sebastian -- Sebastian Henschel, Python Developer Web txtr GmbH | Rosenthaler Str. 13 | 10119 Berlin | Germany -- You received this message because you are subscribed to the Google Gr

Re: reverse function giving me NoReverseMatch exception

2012-08-29 Thread Sebastian Goll
On Tue, 28 Aug 2012 23:35:01 -0700 (PDT) nav <navanitach...@gmail.com> wrote: > BACKEND = r'(?P[a-z])' Your BACKEND pattern is only matching single characters. Try BACKEND = r'(?P[a-z]+)' Best wishes, Sebastian. -- You received this message because you are subscribed to the Goog

Re: is django for me?

2012-05-13 Thread Sebastian E. Ovide
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. > > -- Sebastian E. Ovide -- You received this mess

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-11 Thread Sebastian Goll
bled. Best wishes, Sebastian. -- 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 mo

Re: Django: 404 page not found

2012-04-03 Thread Sebastian Goll
'/' in the second pattern in your photo/urls.py. For reference, see the notes section in https://docs.djangoproject.com/en/1.4/topics/http/urls/#example – "There's no need to add a leading slash, because every URL has that. For example, it's ^articles, not ^/articles." Best wishes,

Re: Problem loading integer data into database using fixture

2012-02-17 Thread Sebastian Goll
Postgres user with /usr/bin/createuser; same name as your Unix user. Best wishes, Sebastian. -- 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

Custom times in admin time selector

2012-02-08 Thread Sebastian Goll
. Can this be done easily? How would I do this? Best wishes, Sebastian. -- 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

Re: Managers of related fields

2011-12-31 Thread Sebastian Goll
for check-in" if you think it is. Otherwise please head over to <django-develop...@googlegroups.com> and present your use-case there, hopefully finding somebody who can take a look at the latest progress in ticket #3871. Regards, Sebastian. [1] https://code.djangoproject.com/ticket/3871

Re: What does login() and logout() actually do?

2011-12-30 Thread Sebastian Goll
the docs: https://docs.djangoproject.com/en/dev/topics/auth/#how-to-log-a-user-in https://docs.djangoproject.com/en/dev/topics/auth/#how-to-log-a-user-out Regards, Sebastian. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Help me with this query

2011-12-23 Thread Sebastian Goll
ke this SQL statement: SELECT … FROM … ORDER BY RANDOM() LIMIT 10 Beware that this might be an expensive and/or slow query, depending on your database backend. Unfortunately, I don't know how each database backend compares. See: https://docs.djangoproject.com/en/1.3/ref/models/querysets/#order-b

Re: automatic models.py generation

2011-10-20 Thread Sebastian Goll
On Thu, 20 Oct 2011 15:03:33 -0700 (PDT) Xangó3007 <xrocavila...@gmail.com> wrote: > I want to generate models.py file from a mysql database, (inverse > reengineering). Can you show me how to do it? Thanks. Xangó from Spain (django-admin/manage).py "inspectdb" [1] is y

Re: How to do equivalent of LEFT JOIN ON in Django (returning all Left rows, when Right item may not exist)

2011-10-08 Thread Sebastian Goll
e relations null-able is the more trivial part of the patch, and essentially a one-liner in django/db/models/sql/compiler.py. "new_nullable = f.null or None" in line 674 – as of r16928 – should be "new_nullable = True" since reverse relations should always be considered null-able. Se

Re: Using render() with Form?

2011-10-03 Thread Sebastian Goll
t object supplied to your view function. So, your example should be: def upload_file(request): ... return render(request, 'upload_form.html', {'form': form}) Sebastian. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Django training resources?

2010-12-17 Thread Sebastian Gutierrez
try showmedo.com They have some django tutorials given by screen casts that are free and some that are pretty cheap. Sebastian On Dec 17, 2010, at 3:12 PM, Sean W wrote: > Is anyone aware of good quality, affordable training for Django? I'm > entirely new to web development, althoug

Re: Django auth tutorial

2010-11-03 Thread Sebastian Alonso
Thanks a lot peter! I think I'll get started with that info and move further if needed. thanks seba 2010/11/3 Peter Herndon <tphern...@gmail.com> > > On Nov 3, 2010, at 12:31 PM, Sebastian Alonso wrote: > > > Hi everyone, I'm a complete django newbie, and I need to

Django auth tutorial

2010-11-03 Thread Sebastian Alonso
Hi everyone, I'm a complete django newbie, and I need to use the Auth system. The problem is that I haven't been able to find a good tutorial such as que django one, with all the examples, pretty simple, very easy, with the templates included, etc... My main issue is that i dont get on well

Re: Custom attributes in Django

2010-08-31 Thread Sebastian Pawlus
looking for something like alex's http://github.com/alex/django-taggit, but perfect situation will be a tag with a type(or choice) thanks On Mon, Aug 30, 2010 at 6:20 PM, Beres Botond <boton...@gmail.com> wrote: > Hi Sebastian, > > I suppose you are trying to do something like

Custom attributes in Django

2010-08-30 Thread Sebastian Pawlus
Hi Maybe im looking in wrong places or maybe there is no application to cover functionality of carrying custom/admin defined attributes, or maybe it isn't even possible. Use Case could looks like Defining models from customr_attr import models class ObjectWithCustom(models.Model): name =

Re: Running all the tests of a clean Django 1.1.1 installation on my machine shows many internal django errors

2010-05-25 Thread Sebastian Sanitz
I am sorry - this problem was already adressed: http://code.djangoproject.com/changeset/11821 I upgraded to Django 1.1.2 and everything is fine! On Tue, May 25, 2010 at 4:29 PM, Sebastian <san...@gmail.com> wrote: > Hello, running all the tests of a clean Django 1.1.1 installatio

Running all the tests of a clean Django 1.1.1 installation on my machine shows many internal django errors

2010-05-25 Thread Sebastian
Hello, running all the tests of a clean Django 1.1.1 installation on my machine shows many internal django errors. You can see the complete output and stacktraces here: http://gist.github.com/411942 Any idea? -- You received this message because you are subscribed to the Google Groups "Django

Re: Close window after download

2010-05-12 Thread Sebastian Pawlus
I'm not sure about your case http://jquery.malsup.com/form/ and event "success", take a look on http://jquery.malsup.com/form/#ajaxSubmit. > Does anyone know how to track if a download completed? > > On May 6, 9:52 pm, CrabbyPete wrote: >> I have code that generates a file

Re: Multiple django version on developer machine

2010-05-12 Thread Sebastian Pawlus
And after virtualen take a look on virtualenvwrapper, makes virtualenv more handy http://pypi.python.org/pypi/virtualenvwrapper On Wed, May 12, 2010 at 4:50 AM, Andy McKay wrote: > > On 2010-05-11, at 7:26 PM, james_027 wrote: >> While I have a number of django apps develop

Re: Django 1.1 features covered in book.

2010-01-30 Thread Sebastian Pawlus
Thanks Shawn for a book, and ekm Bill for link cool website cool colors ;) one for you http://tinyurl.com/ydud8rl On Fri, Jan 29, 2010 at 6:07 PM, Shawn Milochik wrote: > "The Definitive Guide to Django," Second Edition by Adrian Holovaty and > Jacob Kaplan-Moss covers

Django 1.1 features covered in book.

2010-01-29 Thread Sebastian Pawlus
Hi Do you know any Django books which cover functionalities introduced by version 1.1? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group,

Re: Database performance during test execution

2010-01-29 Thread Sebastian Pawlus
? On Fri, Jan 29, 2010 at 12:15 PM, Russell Keith-Magee < freakboy3...@gmail.com> wrote: > On Fri, Jan 29, 2010 at 6:51 PM, Sebastian Pawlus > <sebastian.paw...@gmail.com> wrote: > > Hi everyone > > I've very confusing issue related whit databases performance. I've t

Database performance during test execution

2010-01-29 Thread Sebastian Pawlus
Hi everyone I've very confusing issue related whit databases performance. I've took two database engines and compared their performance during typical run for project test suite. results: MySQL: Ran 241 tests in *533.822s* PostgreSQL: Ran 241 tests in *34.468s* * * Results are more than strange.

Re: Top 10 tips to a new Django developer. correct approach?

2010-01-15 Thread Sebastian Pawlus
ence really. > > Dougal > > 2010/1/15 Sebastian Pawlus <sebastian.paw...@gmail.com> > >> Hi >> >> I've found something like "Top 10 tips to a new Django developer" >> >> http://blog.dpeepul.com/2009/08/31/top-10-tips-to-a-new-django-developer/

Top 10 tips to a new Django developer. correct approach?

2010-01-15 Thread Sebastian Pawlus
Hi I've found something like "Top 10 tips to a new Django developer" http://blog.dpeepul.com/2009/08/31/top-10-tips-to-a-new-django-developer/ I'm really blasted by first point "Don’t put project name in the imports". is this point correct? Django site and core developers

Re: Editors of choice

2009-09-11 Thread sebastian serrano
I use eclipse + pydev. Anyway I found writing python code very easy, so any editor with highlighting and intergrated debugging is good. On Sep 7, 12:55 pm, Samuel Hopkins wrote: > Hello Django peeps, > > I am a Django newbee. I have had my eye on Djanjo for a year or

Python object maker for database result sets

2009-04-14 Thread Sebastian
ple WHERE id=%s, (1,)) »»» person = PyObject (cursor, "NewClass") »»» person »»» »»» print person.t_first_name »»» sebastian »»» print person.__dict__ »»» {'id':1, 't_first_name':'sebastian', 't_last_name':'ritter', 't_password':'password', 't_email':sebast...@test.com'} Using the

Re: Optimizing my ORM query

2009-03-06 Thread Sebastian Bauer
W dniu 06.03.2009 20:06, Jeff Gentry pisze: > On Fri, 6 Mar 2009, Malcolm Tredinnick wrote: > >>> Bob.objects.filter(foo=myFoo).filter(blah__in=myBlahs) >>> >> Seems like the best (and obvious) way to me. >> > > Gotcha. > > >> Yes it does. As written, your models have no

Re: Optimizing my ORM query

2009-03-06 Thread Sebastian Bauer
W dniu 06.03.2009 01:24, Malcolm Tredinnick pisze: > On Thu, 2009-03-05 at 18:48 -0500, Jeff Gentry wrote: > >> Suppose I have three models (in pseudocode): >> >> class Foo: >> asdf = models.CharField() >> >> class Blah: >> qwerty = models.CharField() >> >> class Bob: >> foo =

Re: Faster Database?

2009-02-25 Thread Sebastian Bauer
W dniu 25.02.2009 11:53, bruno desthuilliers pisze: > On 25 fév, 11:00, Sean wrote: > >> Hi, >> >> I am using django+MySql. >> My job involves to write a huge number of products codes into the >> MySql, code such as: ABCDEFGHI10, it is typically between 1 million up >>

Re: Dynamically changing q object

2009-01-26 Thread Sebastian Bauer
W dniu 26.01.2009 13:08, Stefan Tunsch pisze: > Hi! > > I have a qset object like this: > > qset = ( > Q(dst__contains=company.phone) | > Q(dst__contains=company.cellphone) | > Q(dst__contains=company.fax) | >

Re: Dynamically changing q object

2009-01-26 Thread Sebastian Bauer
W dniu 26.01.2009 13:08, Stefan Tunsch pisze: > Hi! > > I have a qset object like this: > > qset = ( > Q(dst__contains=company.phone) | > Q(dst__contains=company.cellphone) | > Q(dst__contains=company.fax) | >

Question about transaction middleware

2009-01-15 Thread Sebastian Bauer
Hi, i have one simple question, why this middleware leave transaction in managed mode? i think this create a little hole to execute queries we dont want to execute. Thanks for answer --~--~-~--~~~---~--~~ You received this message because you are subscribed to

<    1   2   3   >