Re: Django + Apache Web server on Windows

2016-04-05 Thread Avraham Serour
you won't have problems until you try On Mon, Apr 4, 2016 at 8:12 PM, asimkon wrote: > > I would like to configure Django with Apache web server on Windows using > XAMPP or Wamp. I looked over the Web until i came across the following > video https://www.youtube.com/watch?v=VOkXG0jL_8U. Do you

Re: Help with Django initial setup

2016-04-05 Thread Avraham Serour
it seems you have a problem with one of your methods, you declared it without arguments when it should receive one (self) it looks like it is on one of your models, please recheck your models.py On Mon, Apr 4, 2016 at 11:31 PM, George Mathew wrote: > Hi, > I am trying to learn Django. > > I was

How to update values in instance when have a custom .update() to update many-to-many relations in DRF writable nested serializer?

2016-04-05 Thread Manjit Kumar
http://stackoverflow.com/questions/36397357/how-to-update-values-in-instance-when-have-a-custom-update-to-update-many-to I have three models Player, Team, and Membership, Where Player and Team have many-to-many relationship using Membership as intermediary model. class Player(models.Model):

url redirect with kwargs no NoReverseMatch

2016-04-05 Thread Luigi Mognetti
http://stackoverflow.com/questions/36411798/url-redirect-with-kwargs-no-noreversematch main-project urls.py : from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'', include('d

Re: url redirect with kwargs no NoReverseMatch

2016-04-05 Thread Kristofer Pettijohn
You need to name your URLs: https://docs.djangoproject.com/es/1.9/topics/http/urls/#naming-url-patterns urlpatterns = [ url(r'^doll/$', views.doll_describer), url(r'^yourdolldata/(?P\d+)/$', views.yourDollData, name='yourDollData' ), url(r'^connexion/$', views.connexion), url(r'^logout/$',

Re: url redirect with kwargs no NoReverseMatch

2016-04-05 Thread Luis Zárate
reverse('yourDollData', args=(doll.id,)) El martes, 5 de abril de 2016, Luigi Mognetti escribió: > http://stackoverflow.com/questions/36411798/url-redirect-with-kwargs-no-noreversematch > > main-project urls.py : > from django.conf.urls import include, url > from django.contrib import ad

Fabric - Someone has a fabfile to build a Sentry server?

2016-04-05 Thread Neto
I need to build a server using nginx to run sentry, I needed a routine to install all the necessary packages, and configure the server. I am using Ubuntu, Nginx, Django. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Fabric - Someone has a fabfile to build a Sentry server?

2016-04-05 Thread Daniel Chimeno
Hello, Sentry is a server by itself, following the installation docs you could install one. https://docs.getsentry.com/on-premise/server/ El martes, 5 de abril de 2016, 20:54:07 (UTC+2), Neto escribió: > > I need to build a server using nginx to run sentry, I needed a routine to > install all t

Re: Fabric - Someone has a fabfile to build a Sentry server?

2016-04-05 Thread Mike Dewhirst
On 6/04/2016 4:54 AM, Neto wrote: I need to build a server using nginx to run sentry, I needed a routine to install all the necessary packages, and configure the server. I am using Ubuntu, Nginx, Django. Have a look at Mezzanine - it comes with a fabric file to install and maintain Nginx, Guni

Re: Fabric - Someone has a fabfile to build a Sentry server?

2016-04-05 Thread Neto
I need a fabric to install Sentry, Redis, and configure the server with nginx template, supervisor etc. I have a Amazon Instance, and I want with a command install everything. I have following the docs, but I had problem with sentry-worker (supervisor). My server also was too slow Em terça-feira

Problems with dumpdata/loaddata

2016-04-05 Thread jorrit787
I want to dump and load data for two apps that I have. Using dumpdata works fine: python manage.py dumpdata members posts > data.json or python manage.py dumpdata members posts --format=xml > data.xml However, when I try to load the same data back with loaddata I get the following errors: Wi

Re: Architecture of multiple Sites

2016-04-05 Thread jorrit787
These are both interesting solutions. I will give them a try, thanks! On Tuesday, March 22, 2016 at 2:08:27 AM UTC+1, jorr...@gmail.com wrote: > > I'm wondering if I understand the Sites framework correctly... I'm > building a forum-like project which will initially be accessible from > mydomai

Re: Fabric - Someone has a fabfile to build a Sentry server?

2016-04-05 Thread Mario Gudelj
Look for fabulous on GitHub. It sets up all of that on ec2. On Wednesday, 6 April 2016, Neto wrote: > I need a fabric to install Sentry, Redis, and configure the server with > nginx template, supervisor etc. > I have a Amazon Instance, and I want with a command install everything. > I have follo

Re: How use model objects in ver1.9 WITHOUT an app and get rid off "Model class doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS." error mssg?

2016-04-05 Thread Chris Seberino
> > > Just think of an app actually being a namespace rather than an app. > Django uses INSTALLED_APPS entries just like a search path added to the > BASE_DIR so it can find your models. > > Ah yes thanks. That helped a lot. I just needed to basically mention the directory in settings.py and

Re: Looking for ways to improve my skills

2016-04-05 Thread Chris Seberino
On Saturday, April 2, 2016 at 5:37:22 PM UTC-5, Devrhoid Davis wrote: > > Hi All, > > I have been working with Python for just over 3 years now and have > recently taken up django. I have completed both the polls app and have > created an address book app by following a tutorial on youtube. I

Re: Fabric - Someone has a fabfile to build a Sentry server?

2016-04-05 Thread Aaron C. de Bruyn
Another fun way to deploy it is to a dokku (or Heroku) server. Create a git repo with a requirements.txt that includes: sentry[postgres] psycopg2 Create a Procfile: web: sentry --config=sentry.conf.py start workers: sentry --config=sentry.conf.py celery worker -B And finally a sentry.conf.py wit