Re: Python question about subprocess.Popen() and stdout

2010-08-04 Thread Hassan
> Ok, so it appears that (in Python 2.5 at least) there is no way to capture > the stdout of subprocess.Popen() just do this from subprocess import Popen, PIPE p = Popen([cmd], stdout=PIPE) p.stdout.readlines() thats it! -- You received this message because you are subscribed to the Google Gr

Deployment problem

2011-12-08 Thread Hassan
?? Second : i want to use apachy and mod_python , what is the structure of my files , what to upload ? am sorry about this guys but am really lost , best regards , Hassan Alnatour , -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Best way to upload and play a video

2011-12-11 Thread Hassan
Dear ALl , i am having some problems in understanding uploading in django , i want to upload videos and play them , what is the best way to do that ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

working with forms , problem !!!

2011-12-11 Thread Hassan
Dear All , am trying to make a form and i used an example from the book but its not working , dont know why ? this is what i have : models.py : from django.db import models from django import forms class ContactForm(forms.Form): subject = forms.CharField(max_length=100) message

Re: Best way to upload and play a video

2011-12-11 Thread Hassan
i want to use a normal flash player , and after i make the models do i need to make somthing else so i can upload files , and i having a problem of how making a form that can fill a table in models !!! am new to djang :( -- You received this message because you are subscribed to the Google Groups

Re: I can't start new project

2011-12-27 Thread Hassan
What is your Operating System ? -- 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 mor

Django CMS

2011-12-27 Thread Hassan
Dear ALL, i want to ask something , Can i use like one feature on Django CMS i need to using the video upload and playing it , is that possible , how can i do somthing like this . Thanks Best Regards , Hassan Alnatour, -- You received this message because you are subscribed to the Google

YouTube Integration

2011-12-28 Thread Hassan
Dear All, I want to know if there is a way that i can get youtube videos to my website using a video url ? Best Regards , Hassan AL-Natour -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

mod_Wsgi Problem

2012-01-04 Thread Hassan
Dear ALL, i have my application in "C:/mysite" and i created a wsgi file in "C:/mysite" , that has : import os import sys path = 'C:/mysite' if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application =

Re: mod_Wsgi Problem

2012-01-04 Thread Hassan
i tryed WSGIScriptAlias /mysite1 "C:/mysite/django.wsgi" and then http://localhost:8080/mysite1 but i keep geting this : Forbidden You don't have permission to access /mysite1 on this server. what is this , how can i fix it : -- You received this message because you are subscribed to the Go

Re: mod_Wsgi Problem

2012-01-04 Thread Hassan
thnx now its working well , now i want to know how can i serve static files using apache , and i really still dont understand what is serving static files is ? Hope you can help me , -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

admin interface error

2012-01-04 Thread Hassan
Dear ALL, i am using apache and mod_wsgi and its working fine and when i try to start the admin interface i get this :: DatabaseError at /admin/ no such table: django_session Request Method: GET Request URL:http://localhost:8080/mysite/admin/ Django Version: 1.3.1 Exception

Re: mod_Wsgi Problem

2012-01-04 Thread Hassan
but now i have another problem , i cant get the admin interface to work !!! whats missing ?? this is my httpd.conf : WSGIScriptAlias /mysite "C:/mysite/apache/django.wsgi" Order deny,allow Allow from all -- You received this message because you are subscribed to the Google Groups "Django

Re: admin interface error

2012-01-05 Thread Hassan
i did this in the WSGI file : import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() and i added the path for my website and when i did syncdb it created my tables but i cant access the

UnicodeDecodeError

2012-01-05 Thread Hassan
Dear ALL, i am trying to do render_to_response('index.html') , and i keep geting this dont know why ? its a normal html page ??!! what to do ? UnicodeDecodeError at / 'utf8' codec can't decode byte 0x93 in position 3197: invalid start byte Request Method: GET Request URL:http://127.0.0.1:800

Re: UnicodeDecodeError

2012-01-05 Thread Hassan
i will post my index page now -- 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 more

Re: UnicodeDecodeError

2012-01-05 Thread Hassan
http://www.adobe.com/go/getflash";> http://www.adobe.com/images/shared/ download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/> About Us Lorem ipsum dolor sit amet, consectet

Re: UnicodeDecodeError

2012-01-05 Thread Hassan
thnx mate its working now ;) -- 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 more o

RequestContext(request)

2012-01-08 Thread Hassan
Dear ALL, i have a form in a page so i added this to views.py : from django.template import RequestContext from django.shortcuts import render_to_response, get_object_or_404 from globalc.models import newsletter from django import forms class newform(forms.Form): email = forms.CharField(ma

Using VideoLibrary from web2py appliances

2012-01-18 Thread Hassan
Dear all , how can i use the VideoLibrary from web2py appliances , i installed the pack to my web2py but its not converting any videos !! , how can i fix it and is this application can be used in in a website and i can deploy it ?? -- You received this message because you are subscribed to th

How to get model name from foreignkey field?

2011-03-05 Thread Hassan
I am writing a view that controls multiple models. I use Model._meta.fields to access model fields and use value_from_object() to get its value but for foreignkeys it returns the object_id, but I don't know which model is this. Is there any way to get the foreignkey fields model? -- You received

How to use CreateView?

2011-03-11 Thread hassan
Hi, I am testing django 1.3 class based generic views. I have a model like this one: class Book(models.Model): name = models.CharField(max_length=50) author = models.CharField(max_length=50) and in views.py: class BookUpdateView(CreateView): model = Book template_name = "create_

Re: How to use CreateView?

2011-03-12 Thread hassan
On Mar 12, 9:06 pm, Igor Ischenko wrote: > Hi hassan, Hi > try to add {% csrf_token %} somewhere inside form in your template I have it there and with it does nothing I mean: no error no response, just a form reload!!! > On 11 ÜÐà, 23:41, hassan wrote: > > > > > > &

Re: Help using internationalization feature

2011-03-14 Thread hassan
take a look at http://docs.djangoproject.com/en/1.2/topics/i18n/internationalization/ it is clear, but for short: 1 - in .py files: from django.utils.translation import ugettext as _ and mark each text you want to traslate like this _("My string") 2 - in .html files: {% load i18n %}

Handling Facebook development in Django

2010-01-25 Thread Hassan Baig
redirects to an XML. which is loaded by flash, to get values from the database. The setup works fine when outside facebook, but as soon as I put the setup in facebook, it stops loading the XML completely. Any clues? -Hassan Baig -- You received this message because you are subscribed to the Goo

Re: SMTP Authentification error

2022-04-29 Thread Hassan Bashir
Hi there, EMAIL_BACKEND = 'django.core.mail.backends.*smtp.EmailBackend'* *EMAIL_HOST = 'smtp.gmail.com '* *EMAIL_PORT = 587* *EMAIL_USE_TLS = True* *EMAIL_HOST_USER = os.environ.get('DB_USER')* *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')* in this code you just nee

Re: SMTP Authentification error

2022-05-01 Thread Hassan Bashir
Hi Dear, Good Afternoon. Dear these settings are used for only email host and password these variables are not valid for db_user or db_password. see the image below. Also make sure you smtp is enabled in that email which email you are using settings.py ok hope got this ? On Sat, Apr 30, 2022 at 12

Re: Looking for Django Developer - Co founder for Fintech Product

2022-08-17 Thread Hassan Shah
Hi I am a web developer with 2 years of experience in python Django and php Laravel. I am interested to work with you. On Wed, Aug 17, 2022, 7:50 PM Mannoj Tewari wrote: > Hi, > > I am looking for Django Developer / Co-founder for fintech product in > Mumbai. > > Regards > > -- > You received

Help:What is the problem in this code?

2020-09-13 Thread Hassan Shuvo
[image: manage.PNG][image: code.PNG] -- 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 view this discussion on the we

problem with using generic views

2015-08-08 Thread Doaa Hassan
Hi all, I am trying to convert poll app introduced on: https://docs.djangoproject.com/en/1.8/intro/tutorial01/ to use the generic views system as described on: https://docs.djangoproject.com/en/1.8/intro/tutorial04/ However, when I convert the URLconf by opening the polls/urls.py and ch

Re: problem with using generic views

2015-08-10 Thread Doaa Hassan
the next > section. > > https://docs.djangoproject.com/en/1.8/intro/tutorial04/#amend-views > <https://www.google.com/url?q=https%3A%2F%2Fdocs.djangoproject.com%2Fen%2F1.8%2Fintro%2Ftutorial04%2F%23amend-views&sa=D&sntz=1&usg=AFQjCNFzGRzVdhKuM-apQtJhhna-Wcx5Gw>

Re: help, How can i solve this error please

2018-07-07 Thread Ahmad Hassan
from django.contrib.auth.views import LoginView, LogoutView urlpatterns = [ url(r'^login/$', LoginView.as_view(template_name='accounts/login.html')), url(r'^logout/$', LogoutView.as_view(template_name='accounts/logout.html')), ] On 7/8/18, Hambali Idrees Ibrahim wrote:

Re: help, How can i solve this error please

2018-07-08 Thread Ahmad Hassan
thanks a lot man. url(r'^register$', views.register, name='register'), is not working now On 7/8/18, Ahmad Hassan wrote: > from django.contrib.auth.views import LoginView, LogoutView > > > > > urlpatterns = [ > > >url(r'^login/$'

hey there! i really want to have a friend here

2021-05-24 Thread Hassan Adamu
good day dear friends. i have created a website just a few month a go. but now i was unable to access the website. please my friends can any body help me out? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and s

Re: hey there! i really want to have a friend here

2021-05-24 Thread Hassan Adamu
blem. > > > Regards, > Sharif > On Monday, May 24, 2021, 7:23:16 PM GMT+6, Hassan Adamu < > kindnesscom...@gmail.com> wrote: > > > good day dear friends. > i have created a website just a few month a go. but now i was unable to > access the website. please my frien

Re: Looking for collaborators for an online marketplace project with Python, Django, React.js and Next.js

2024-02-11 Thread Hassan Shah
I am interested in project as a react.js developer and learning Django also so I think this project is the best fit for me On Mon, Feb 12, 2024, 12:45 AM Basith wrote: > im interested could you please create a WhatsApp group, here's my > number. +919544716586 > > On Mon, 12 Feb 2024 at 01:12, Jo

How to change how foreign keys are view in admin site

2019-11-15 Thread Usman Hassan
I have a problem with my django app, I created a an that has two models one which is post and the other is comment, and the comment has a foreign key relationship to post. But anytime I view the admin site and I tried to relate a comment to a post I made, it won't show me the title of the post b

add me

2022-09-27 Thread Tariq A Hassan
hi, please add me, +964 7716795870 -- 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 view this discussion on the web

django.db.models.signals

2020-09-19 Thread Mohammad hassan Tahery
It would be cool to have pre_update and post_update in set of built-in signals. -- 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...@goog