Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread Sabine Maennel
I just switched from Sqlite to postgres. Everything is working except that when I open PgAdmin III all tables are still empty. I really wonder where are my data? In my settings file I have: DATABASES = { 'default': { #'ENGINE': 'django.db.backends.sqlite3', #'NAME': os.path

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-14 Thread Sabine Maennel
ve you issued the command to create the tables. > python manage.py makemigrations > python manage.py migrate > > The above will create what ever tables you have in the models. > > The actual data that something else? > > Johnf > > On 03/13/2015 03:29 AM, Sabine Maenn

I have several models throwing this error: "AppRegistryNotReady: Models aren't loaded yet."

2014-09-24 Thread Sabine Maennel
Mostly it is models in the same app: one is fine and the other one throws this error, when I call them from my shell: I start my shell and run x=.objects.all() which runs fine, but then when I want to show x by: print x the error occurs. I really do not know what it means, googling it d

AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Sabine Maennel
Hello, please help! Some of my models throw this error, when I query them with object.all(). They coexist in apps that have other models that are just fine. I do not understand at all what the problem might be and could not google it. For example: this would be my models.py in the app "account

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Sabine Maennel
Thank you Tom, that was very helpful. It all works if I throw these unicode representations out. I do have 'django.contrib.auth' installed. I can play around with what representations to use now. But from the error message I would not have guessed that it had this reason. So again thanks very

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Sabine Maennel
the web visit > https://groups.google.com/d/msgid/django-users/809ad79d-0036-4ddd-ac1c-a417ed25eed3%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/809ad79d-0036-4ddd-ac1c-a417ed25eed3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more

Django hosting

2014-09-24 Thread Sabine Maennel
I live in Switzerland and I will launch my startup shortly. It will be a very small platform in the beginning but traffic might grow all of a sudden. So regarding to hosting I am torn right now, between Pyrox, which is a small, but accessible Germ hoster and Django Europe, which is spezialized

Re: Upgrading Django (to 1.7)

2014-09-24 Thread Sabine Maennel
Dear Andrew, I read your article and it is great. I am really looking forward to your followups. I was hoping for something like this went I attended Django Con Europe. I struggle with the understanding the migrations the most. Usually in the early phases of development I do not want migration

Re: I have several models throwing this error: "AppRegistryNotReady: Models aren't loaded yet."

2014-09-24 Thread Sabine Maennel
complex interaction occurring during the loading of your models; > we'll need more details about your setup to be able to diagnose what is > going on. > > You'll find more details about the new App infrastructure in the docs: > > https://docs.djangoproject.com/en/1.7/

Re: Django hosting

2014-09-24 Thread Sabine Maennel
ws.amazon.com/free/. Also, your hosting provider today may not be > your hosting provider tomorrowstart free, learn what you need and how > much you need to scale up, and then move to paid hosting. AWS EC2 also has > European data centers. > > Anyway, just my 2 cents on hosti

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-25 Thread Sabine Maennel
msgid/django-users/809ad79d-0036-4ddd-ac1c-a417ed25eed3%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/809ad79d-0036-4ddd-ac1c-a417ed25eed3%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options,

kwargs are not available in the get_context_method of generic CreateView, why?

2014-09-25 Thread Sabine Maennel
Please help: I am using Django's Class based Generic CreateView: *url:* http://127.0.0.1:8000/buchung/pilotkurs/2/ *urls.py* urlpatterns = patterns("", url(r'^(?P[a-z0-9_-]{3,50})/(?P\d+)/$', OrderCreateView.as_view(), name='form'), ) There are clearly kwargs, that I use. My context proces

Re: kwargs are not available in the get_context_method of generic CreateView, why?

2014-09-25 Thread Sabine Maennel
Danke Collins, das wars! Am Donnerstag, 25. September 2014 22:48:45 UTC+2 schrieb Collin Anderson: > > print self.kwargs > -- 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

at django login my request.POST.get data are all empty, I struggle with what I missed there

2014-09-26 Thread Sabine Maennel
This is my login view: def login_view(request,template_name='userauth/login.html'): if request.method == 'POST': username = request.POST.get('username') password = request.POST.get('password') print username print password user = authenticate(username=u

Re: at django login my request.POST.get data are all empty, I struggle with what I missed there

2014-09-26 Thread Sabine Maennel
jangoproject.com/en/1.6/ref/forms/api/#using-forms-to-validate-data > > 1 - > https://docs.djangoproject.com/en/1.6/ref/request-response/#django.http.HttpRequest.POST > > 2 - > https://docs.djangoproject.com/en/1.4/topics/auth/#django.contrib.auth.views.login > > > On Fri,

Django Generic Create VIew and Hidden fields

2014-09-28 Thread Sabine Maennel
Can someone please help me with Create View? I have a hidden field and not having it in the form causes Django to not store my object in the database. It fails silently. So here are my files: *model.py:* class Application(TimeStampedModel): name = models.CharField(max_length=50) applic

Please help: urgent deployment problem with django post office

2014-10-02 Thread Sabine Maennel
ot;, "core.context_processors.resolvermatch", ) #post office settings EMAIL_BACKEND = 'post_office.EmailBackend' # Put this in settings.py POST_OFFICE = { 'DEFAULT_PRIORITY': 'now' } # Put this in settings.py POST_OFFICE = { 'LOG_LEVEL': 1 #

Re: Please help: urgent deployment problem with django post office

2014-10-02 Thread Sabine Maennel
rstrand" > wrote: > >> >> Den 02/10/2014 kl. 16.37 skrev Sabine Maennel > >: >> >> > Please help! >> > >> > I want to deploy tomorrow. The problem is that django post office logs >> INTERNAL Errors into the the table "posto

Re: Please help: urgent deployment problem with django post office

2014-10-02 Thread Sabine Maennel
. with kind regards Sabine Maennel Am Donnerstag, 2. Oktober 2014 16:52:23 UTC+2 schrieb Erik Cederstrand: > > > Den 02/10/2014 kl. 16.37 skrev Sabine Maennel >: > > > Please help! > > > > I want to deploy tomorrow. The problem is that django post of

Re: Please help: urgent deployment problem with django post office

2014-10-03 Thread Sabine Maennel
Hello Collins, I need post office for other purposes not for error logging. I worte an issue in their issue queue, this is what they wrote back: >>As explained by @RafRaf , the emails are sent by BrokenLinkEmailsMiddleware, you can disable it insettings.py if you need

CSRF Token: is it okay if it is attached to my url when I enter my form?

2014-10-03 Thread Sabine Maennel
Please help: I am confused whether it is okay that it is showing in the url like this: http://netteachers.de/bewerbung/formular?csrfmiddlewaretoken=2jKsplZsQx5XpBfltUaDmgJjhRiCllxQ This happens when I enter my form ( a CreateView Model Form)? Is that oky or a security risk of any kind? -- Y

Re: CSRF Token: is it okay if it is attached to my url when I enter my form?

2014-10-04 Thread Sabine Maennel
Thank you Collin and Thundebabzy, you identified the problem I think. When I call the form for the first time it is called the wrong way. I will fix this! Am Freitag, 3. Oktober 2014 16:57:23 UTC+2 schrieb Collin Anderson: > > However you would have that behavior when you are submitting a form

I need some help to find a deployment strategy

2014-10-05 Thread Sabine Maennel
right to you over all or am I missing something important here. Thanks for all the help I got so far in this forum. I really appreciate this and will try to give back at a later time with kind regards Sabine Maennel -- You received this message because you are subscribed to the Google

Re: I need some help to find a deployment strategy

2014-10-05 Thread Sabine Maennel
out of control. I really appreciate your advice on this and will check out fabric. with kind regards Sabine Maennel Am Sonntag, 5. Oktober 2014 22:08:49 UTC+2 schrieb mark: > > Sabine, > > How I deploy a django app...ymmv and I won't say this is the bes

Re: I need some help to find a deployment strategy

2014-10-05 Thread Sabine Maennel
k out two scoops - I think it's chapters 3 and 4 > > cheers > L. > 4. > > > On 6 October 2014 04:37, Sabine Maennel > wrote: > > I have my site up and running for the first time, and it was hard to > catch > > the deadline, but now I need to get to a

robots.txt 404 errors are not ignored, even though I put it in my settings file

2014-10-20 Thread Sabine Maennel
*Please can anybody help me with 404 errors?* *I put this in my settingsfile: * import re IGNORABLE_404_URLS = ( re.compile(r'^/apple-touch-icon.*\.png$'), re.compile(r'^/favicon\.ico$'), re.compile(r'^/robots\.txt$'), ) *but I still get 404 errors reported for robots.txt: What am

getting 500 131 error on page not found

2014-10-21 Thread Sabine Maennel
I really do not understand what is happening. I have a 404.html along with a 500.html in my template directory. They are both simple and look like this: 404.html: Server Error 404!Das netTeachers-Team ist informiert und kümmert sich darum. Wir hoffen auf Ihr Verständnis. 500.html: Server E

Re: robots.txt 404 errors are not ignored, even though I put it in my settings file

2014-10-21 Thread Sabine Maennel
Thank you very much for your help Collin! Am Dienstag, 21. Oktober 2014 03:29:38 UTC+2 schrieb Collin Anderson: > > Hi Sabine, > > IGNORABLE_404_URLS = ( > re.compile(r'^/apple-touch-icon.*\.png$'), > re.compile(r'^/favicon\.ico$'), > re.compile(r'^/robots\.txt$'), > ) > remove the sla

Re: getting 500 131 error on page not found

2014-10-22 Thread Sabine Maennel
:19 PM, Sabine Maennel > > wrote: > > I really do not understand what is happening. I have a 404.html along > with a > > 500.html in my template directory. They are both simple and look like > this: > > > > 404.html: > > > > Server Error 404

Re: getting 500 131 error on page not found

2014-10-22 Thread Sabine Maennel
have you been doing Django? Thanks again and with kind regards Sabine Maennel Am Dienstag, 21. Oktober 2014 19:22:56 UTC+2 schrieb Collin Anderson: > > Hi Sabine, > > It may be an issue with your core.context_processors.resolvermatch. > > I recommend setting ADM

Re: ImportError cannot import name

2014-10-22 Thread Sabine Maennel
Hello Juan, if your project is "exsite" and your app is "example" then you should probably just add "example" to the list of installed apps. Try it, hope it works. with kind regards Sabine Am Mittwoch, 22. Oktober 2014 06:16:25 UTC+2 schrieb Juan Carlos: > > Hi everyone, > >

Re: ImportError cannot import name

2014-10-22 Thread Sabine Maennel
ib.messages', 'django.contrib.staticfiles', 'example', ) but to be sure I would need to see you directory structure. Hope this helps. with kind regards Sabine Am Mittwoch, 22. Oktober 2014 13:38:24 UTC+2 schrieb Sabine Maennel: > > Hello Juan, if yo

please help: problem saving strings to the database

2014-11-21 Thread Sabine Maennel
Hello, I do not know why this is happening: If I try to update a database record the text gets into the field the wrong way: models.py from model_utils.models import TimeStampedModel class ClassroomLog(TimeStampedModel): ... text = models.TextField() then somewhere else I put data in

Re: please help: problem saving strings to the database

2014-11-22 Thread Sabine Maennel
t; > log = ClassroomLog.objects.get(...) > log.text = "Hallo"*,* > log.save() > > Sexta-feira, 21 de Novembro de 2014 11:57:40 UTC, Sabine Maennel escreveu: >> >> Hello, >> >> I do not know why this is happening: If I try to update a data

Re: please help: problem saving strings to the database

2014-11-22 Thread Sabine Maennel
. > > W dniu piątek, 21 listopada 2014 12:57:40 UTC+1 użytkownik Sabine Maennel > napisał: >> >> Hello, >> >> I do not know why this is happening: If I try to update a database record >> the text gets into the field the wrong way: >> >> model

Need example view on how to react on a webhook in Django

2015-10-16 Thread Sabine Maennel
/webhooks/test HTTP/1.1" 500 112859* if I try the url directly I get this error: *[16/Oct/2015 16:10:20] "GET /de/webhooks/test HTTP/1.1" 405 0* What am I doing wrong? Is there an example on how to do it right? Do I need Celery for this? Any help is highly appreciated with kind