It turns out that my two inquiries from the past three days were more
related than I had thought. I have finally resolved both.
Let's first review what was going on. Here was my original problem,
titled "Two projects fail to import the same main app when I turn on
both in Apache".
On Tue, May 5,
Your server log said this (loading my.wsgi)
Exception occurred processing WSGI script
'/code/projects/my_web/wsgi/my.wsgi'.
But your structure said that wsgi file is called different (idrac.wsgi).
Other thing, call core your app is not a good idea, do it if you understand
well how python import
To my mind it means something along the lines of:
if someone says something sexist, instead of jumping on them and
eviscerating them publicly, we take them aside and explain that that type
of language is against the CoC, is inappropriate, and ask them to not do it
again. Even so far as to offer su
I think if you change the word 'resolving' to 'resolve', it may make
more sense..
On Thu, May 7, 2015 at 10:51 PM, Graham Oliver
wrote:
> Hello all
> Just reading the code of conduct https://www.djangoproject.com/conduct/
> The last line goes like this
>
> 'Don’t forget that it is human to err
Hello all
Just reading the code of conduct https://www.djangoproject.com/conduct/
The last line goes like this
'Don’t forget that it is human to err and blaming each other doesn’t get us
anywhere, rather offer to help resolving issues and to help learn from
mistakes.'
I don't really understand
I just found out the CommentForm actually requires to set target_object for
initialization.
It should've been
commForm = CommentForm(target_object = myobj, data=request.POST)
Sorry for the noise on the list!
On Thursday, 7 May 2015 18:05:09 UTC-5, Martin Beroiz wrote:
>
> Hello,
>
> I'm rathe
I'm trying to upload a picture through my admin page and keep getting Errno
13.I have no clue what is going wrong, any help would be great.
Here are the lines of code from my model,
image_object = models.ImageField(db_column='IMAGE_OBJECT',upload_to =
"/media/", blank=True) # Field name m
Hello,
I'm rather new to Django and I'm trying to include django_comments form in
another form a user can choose.
Basically, the user will fill a custom form (of mine) and possibly leave a
comment with a form generated with django_comments.
In a nutshell, I want to save a comment programmatic
On 2015-05-07 22:32, Thorsten Sanders wrote:
> Am 07.05.2015 17:37, schrieb Tim Chase:
>> Can you provide sample JSON data that others can use
>> for testing? Which version of Python are you using and which
>> Python JSON library are you using?
>
> The version of python can make quite a big differ
Am 07.05.2015 17:37, schrieb Tim Chase:
On 2015-05-07 13:56, palansh agarwal wrote:
processing of json is slow. It takes considerable amount of time to
process data after calling the API.
You seem fairly confident in this. Do you have the timing
statistics? Can you provide sample JSON data th
On Tue, Apr 28, 2015 at 9:40 PM, dk wrote:
> I check the apache httpd log and do get this
>
> [Tue Apr 28 10:33:49.982311 2015] [:error] [pid 18060] [client
> 10.35.0.91:61408] from django.apps import apps
> [Tue Apr 28 10:33:49.982336 2015] [:error] [pid 18060] [client
> 10.35.0.91:61408] I
Well this is neat. Following the advice of Collin Anderson,
https://groups.google.com/d/msg/django-users/d_aWdw_AhH0/424ABkRajaoJ
I removed the LOGGING stuff, which wasn't that interesting anyway.
And then the exception emails started appearing!
I got this,
> Invalid HTTP_HOST header: 'localhost
On 2015-05-07 13:56, palansh agarwal wrote:
> processing of json is slow. It takes considerable amount of time to
> process data after calling the API.
You seem fairly confident in this. Do you have the timing
statistics? Can you provide sample JSON data that others can use
for testing? Which v
No I have not made any changes to the admin templates. I simply
followed the instructions in the tutorial. I am using Django's
runserver per the tutorial instructions. I am totally stumped.
David
On Thu, May 7, 2015 at 3:04 AM, aRkadeFR wrote:
> Hey,
>
> You shouldn't see these errors since the
On 07 May 16:00, steve malise wrote:
> The error comes when i runserver and send data from another computer to
> django,then i get this "code 400, message Bad request syntax ( data from
> another computer)"
This is because
On 07 May 11:42, Tom Evans wrote:
> Eurgh. Your hand-crafted HTTP request
What i am trying to do is run python script(client side) on another
computer which is on same network with my computer,then receive data from
another computer with the django(which is running on my computer(server
side)).i am using built-in "runserver".
The error comes when i runserver and send da
On Thu, May 7, 2015 at 3:00 PM, steve malise wrote:
> What i am trying to do is run python script(client side) on another computer
> which is on same network with my computer,then receive data from another
> computer with the django(which is running on my computer(server side)).i am
> using built-
No need to apologize. If you think there is anything we can / should add to
Django's documentation that would have either helped you to figure out the
issue or that had prevented you from running into the issue in the first
place, please go ahead and open an issue at https://code.djangoproject.c
I have a requirement to load data into cassandra db from my JSON file using
Django framework. As far as I know, "manage.py loaddata" only works for
relational databases but not for NoSQL class databases. Is there any script
similar to loaddata and dumpdata for loading and dumping data from/to
c
> which part is slow? the API, the processing of the JSON, or the
> display?
And here's how you can check that. Insert the following line between
the different steps that Tim itemized,
print(time.perf_counter())
subtract the numbers that get printed, and then determine which step
is slow.
Hi,
Every page on my site returns a status code of 400 when I set
`debug = False` in my settings file, and this doesn't happen
if I switch it to `True`. How can I determine what is going wrong?
I have not managed to find it in the Django loggers (through email
or through a custom logging facility
On Thu, May 7, 2015 at 12:48 PM, steve malise wrote:
> where can i write web server?
>
Why do you want to?
Django is a web application, it is hosted inside webservers, typically
using WSGI. Typically, you would use one of the many webservers that
can host wsgi applications - nginx, apache+mod_ws
Oh thank you very much for the clarification.
I understood in what there was a mistake. And I apologize for my
carelessness.
Thanks!
--
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
Hey there,
app labels (i.e. what you specify in your AppConfig or in AUTH_USER_MODEL)
are case sensitive. Thus either change AccountConfig.label to "account"
(this affects all migrations that depend on your account app) or
AUTH_USER_MODEL to "Account.User". I'd recommend to use lower case app
Indeed! Thanks
Tom
On 05 May 13:49, Tom Evans wrote:
> On Tue, May 5, 2015 at 10:32 AM, Thomas Levine <_...@thomaslevine.com> wrote:
> > Hi,
> >
> > For like the first time ever I want to make complicated websites,
> > so using Django finally seems like a good idea. And it is! All the
> > small b
where can i write web server?
On Thu, May 7, 2015 at 12:42 PM, Tom Evans wrote:
> On Thu, May 7, 2015 at 9:24 AM, steve malise wrote:
> >
> > client side code:
> > data = "message"
> > try:
> > clsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> > clsocket.connect(('192.168.
Oh, sure!
INSTALLED_APPS = [
...
'isar.account',
'isar.account.auth',
...
]
--
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...@goo
you have added to the installed_apps?
четверг, 7 мая 2015 г., 12:39:16 UTC+3 пользователь Алексей Широков написал:
>
> I have custom user model.
>
> settings.py
> ---
> ...
> AUTH_USER_MODEL = 'account.User'
> ...
>
>
> also I have following AppConfig
>
> account/apps.py
> ---
On Thu, May 7, 2015 at 9:24 AM, steve malise wrote:
>
> client side code:
> data = "message"
> try:
> clsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> clsocket.connect(('192.168.2.2', 8000))
> print("Connection has been Made")
> clsocket.send("POST / HTTP/1.1 "+ data)
client side code:
data = "message"
try:
clsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clsocket.connect(('192.168.2.2', 8000))
print("Connection has been Made")
clsocket.send("POST / HTTP/1.1 "+ data)
clsocket.close()
except:
print("ERROR:Connection
I have custom user model.
settings.py
---
...
AUTH_USER_MODEL = 'account.User'
...
also I have following AppConfig
account/apps.py
---
class AccountConfig(AppConfig):
name = 'isar.account'
*label = 'Account'*
verbose_name = 'Аккаунт'
and when I call command mi
i added
v1_api.register(ArtistResource())
in my main url
and this is the code in meta class
class Meta:
queryset = Artist.objects.all()
resource_name = 'artist'
#authentication = Authentication()
# authorization = Authorization()
excludes = ['rating',
I'm guessing the issue is actually in your template if you are following
along that page. None of the code in your views would generate that error
from what I can see.
The error indicates that you are trying to reverse('polls:detail') and not
providing any arguments for the URL resolver (or are pa
Hey,
You shouldn't see these errors since the templates with the form
and so the CSRF token are generated from the contrib app admin.
Could you provide us more details of the error? Did you override
the admin templates?
Thanks,
aRkadeFR
On 05/06/2015 10:03 PM, David Riddle wrote:
Hi,
I am w
I guess I will try django-allauth. Looks like it is easier to integrate.
thank you for reply.
Thomas Güttler
Am Mittwoch, 6. Mai 2015 13:23:30 UTC+2 schrieb Filipe Ximenes:
>
> I have some experience with python-social-auth.
> https://github.com/omab/python-social-auth
> It's a very good too
I am on part 4 django tutorial. The tutorial is very good and I easily get
on part 4 but
I get error: Reverse for 'detail' with arguments '('',)' and keyword
arguments '{}' not found. 1 pattern(s) tried:
[u'polls/(?P\\d+)/$']
Am I missing something?
My code is following:
urlpatterns = pa
36 matches
Mail list logo