Re: Working Django forums code for integration?

2012-06-23 Thread brycenesbitt
I've had the same problem.
>
> AskBot : not a real forum, and a lot of dependencies.
PyBBM: install instructions incomplete, no community to speak of, buggy.  I 
had problems with csrf, and could not get any help.
Cnprog: dead
PyBB: dead
DjangoBB: website reads "Documentation will be soon..."

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/_cWicZJM94AJ.
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Send message to SMS Gateway

2012-06-23 Thread Cal Leeming [Simplicity Media Ltd]
Just fyi, if you were working directly with an upstream provider (such as
T-Mobile or O2), you would most likely need to be processing literally
millions of messages a month.. you'd probably also need to meet minimum
commit terms (such as throughput and contract duration).

I suspect anything short of this, and you'd just be refereed to a reseller,
such as the ones mentioned previously.

Start out small with one of these resellers, then grow later :)


On Sun, Jun 24, 2012 at 2:30 AM, Setiaman Lee wrote:

> Hi Cal, Nevio and Anh
>
> Thanks for your reply.
> The reason I want to use SMPP is because I will send high volume of
> SMS per month. So cost will be a factor here. The faster and reliable
> protocol is using SMPP (at least this is what I know). Probably I need
> to deal with Telco network or sms distributor. Some distributor
> provide http protocol but they still recommend to use SMPP and I want
> to use Python/Django to interact with their server.
>
> You have give me some valuable information, especially RapidSMS.
> It looks cool. I need to research it first.
>
> Thanks guy.
>
> Cheers,
> Setiaman Lee
>
>
>
> On Sat, Jun 23, 2012 at 11:58 AM, Le Hoang Anh 
> wrote:
> > Hi,
> >
> > You may have a look at http://www.rapidsms.org/
> > it supports various backends (kannel, smpp)
> >
> > -- anh
> >
> > On Sat, Jun 23, 2012 at 9:11 AM, Setiaman 
> wrote:
> >> Hi,
> >>
> >> I want to create a web app to send the message to SMS Gateway.
> >> Try to google the suggested way is to use SMPP protocol.
> >> But I can't find any easy package to send message thru SMPP.
> >>
> >> Can any body give a pointer?
> >>
> >>
> >> Rgrds,
> >> Setiaman
> >>
> >> --
> >> 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 options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> >>
> >
> >
> >
> > --
> > Le Hoang Anh
> >
> > --
> > 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 options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> >
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Send message to SMS Gateway

2012-06-23 Thread Setiaman Lee
Hi Cal, Nevio and Anh

Thanks for your reply.
The reason I want to use SMPP is because I will send high volume of
SMS per month. So cost will be a factor here. The faster and reliable
protocol is using SMPP (at least this is what I know). Probably I need
to deal with Telco network or sms distributor. Some distributor
provide http protocol but they still recommend to use SMPP and I want
to use Python/Django to interact with their server.

You have give me some valuable information, especially RapidSMS.
It looks cool. I need to research it first.

Thanks guy.

Cheers,
Setiaman Lee



On Sat, Jun 23, 2012 at 11:58 AM, Le Hoang Anh  wrote:
> Hi,
>
> You may have a look at http://www.rapidsms.org/
> it supports various backends (kannel, smpp)
>
> -- anh
>
> On Sat, Jun 23, 2012 at 9:11 AM, Setiaman  wrote:
>> Hi,
>>
>> I want to create a web app to send the message to SMS Gateway.
>> Try to google the suggested way is to use SMPP protocol.
>> But I can't find any easy package to send message thru SMPP.
>>
>> Can any body give a pointer?
>>
>>
>> Rgrds,
>> Setiaman
>>
>> --
>> 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 options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> Le Hoang Anh
>
> --
> 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 options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Any clue why Facebook iframe would be blank?

2012-06-23 Thread Kurtis Mullins
>
> This is a common problem in all of the proxied setup:
>
> http://flask.pocoo.org/snippets/47/
>
> The real fix is always reading POST datas when they are available (even if
> you are not interested in them). Not reading them means your communication
> socket with the webserver will be clobbered soon or later.
>
> If you do not want to change your code you can use the uWSGI
> --post-buffering option that will automatically buffer post data in memory
> (or to disk).


Thanks! I've never ran into this problem before but you definitely brought
some light on the subject. I appreciate the good information!

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Haystack with Solr- Schema Parsing Failed

2012-06-23 Thread coded kid
I'm trying to rebuild_index, but after building the schema ( manage.py
build_solr_schema ) I copy and paste the output in the schema.xml
file. After restarting the server and rebuild_index ( manage.py
rebuild_index ) I'm getting the below error. I've been trying to get
the problem, yet no success! What I'm I missing? Should I first delete
the XML codes in the schema file before pasting the new one?


Error:

HTTP Status 500 - Severe errors in solr configuration. Check your log
files for more detailed information on what may be wrong. If you want
solr to continue after configuration errors, change:
false in
solr.xml -
org.xml.sax.SAXParseException: Attribute name "omitN" associated with
an element type "fieldtype" must be followed by the ' = ' character.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source) at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source) at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source) at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source) at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
Source) at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source) at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDriver.next(Unknown Source) at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source) at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source) at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source) at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source) at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source) at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source) at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
Source) at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
Source) at org.apache.solr.core.Config.(Config.java:159) at
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:418) at
org.apache.solr.schema.IndexSchema.(IndexSchema.java:123) at
org.apache.solr.core.CoreContainer.create(CoreContainer.java:481) at
org.apache.solr.core.CoreContainer.load(CoreContainer.java:335) at
org.apache.solr.core.CoreContainer.load(CoreContainer.java:219) at
org.apache.solr.core.CoreContainer
$Initializer.initialize(CoreContainer.java:161) at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:
96) at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:
277) at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:
258) at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:
382) at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:
103) at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:
4649) at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:
5305) at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
899) at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
875) at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
650) at org.apache.catalina.startup.HostConfig
$DeployDescriptor.run(HostConfig.java:1582) at
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at
java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at
java.util.concurrent.FutureTask.run(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
-
org.apache.solr.common.SolrException: Schema Parsing Failed: Attribute
name "omitN" associated with an element type "fieldtype" must be
followed by the ' = ' character. at
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:688) at
org.apache.solr.schema.IndexSchema.(IndexSchema.java:123) at
org.apache.solr.core.CoreContainer.create(CoreContainer.java:481)


Schema output:





  
























  




  
  




  




  







  
  








  




  

how to create the app_list variable

2012-06-23 Thread Naresh Dwivedi
Hello all, I am new to django python programming and need some help: 
how can i  create  the app_list variable as it is created in a function 
index on sites.py in django/contrib/admin/ and made it available at each 
admins template page, actually i want to create a menu in which the top 
menu items are the installed apps and there sub menus are the models in 
them. any help will be appreciated. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/xHfBqTTU2psJ.
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Send message to SMS Gateway

2012-06-23 Thread Le Hoang Anh
Hi,

You may have a look at http://www.rapidsms.org/
it supports various backends (kannel, smpp)

-- anh

On Sat, Jun 23, 2012 at 9:11 AM, Setiaman  wrote:
> Hi,
>
> I want to create a web app to send the message to SMS Gateway.
> Try to google the suggested way is to use SMPP protocol.
> But I can't find any easy package to send message thru SMPP.
>
> Can any body give a pointer?
>
>
> Rgrds,
> Setiaman
>
> --
> 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 options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Le Hoang Anh

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Send message to SMS Gateway

2012-06-23 Thread Nevio Vesic
Setiaman,

You can try to use service provider such as www.telapi.com to help you with
SMS messages.
Getting done SMS on your own will cost you much more time and money than
you actually need to spend.

Regards,
Nevio

On Sat, Jun 23, 2012 at 11:31 AM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> From the way your email is worded, I think you are looking at doing this
> the wrong way.
>
> Look at using something like BulkSMS - or an SMS USB device.
>
> Don't start trying to figure out how SMPP and SS7 works, you'll only give
> yourself a head ache and it absolutely wouldn't be relevant to you.
>
> Cal
>
>
> On Sat, Jun 23, 2012 at 3:11 AM, Setiaman  wrote:
>
>> Hi,
>>
>> I want to create a web app to send the message to SMS Gateway.
>> Try to google the suggested way is to use SMPP protocol.
>> But I can't find any easy package to send message thru SMPP.
>>
>> Can any body give a pointer?
>>
>>
>> Rgrds,
>> Setiaman
>>
>> --
>> 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 options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> 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 options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Any clue why Facebook iframe would be blank?

2012-06-23 Thread Roberto De Ioris

> On Fri, Jun 22, 2012 at 3:59 AM, Gabriel - Iulian Dumbrava <
> gabriel.dumbr...@gmail.com> wrote:
>
>> Hi,
>> I think something similar happen to me when I set the width of the
>> iframe
>> to be too narrow. I'm not very sure, but maybe you cand check it out.
>>
>> Gabriel
>>
>
> Hey Garbiel,
>
> I actually figured out the issue on my end. From what I gather, uWSGI
> doesn't handle small POST data sizes well. I had to change a couple of
> uWSGI configuration parameters (as seen on Stackoverflow).
> As far as I can tell -- my stuff is all good now, both in the Fluid and
> fixed-size layouts.
>
> If you need any help debugging yours, let me know! And thanks for the
> feedback.
>
>

This is a common problem in all of the proxied setup:

http://flask.pocoo.org/snippets/47/

The real fix is always reading POST datas when they are available (even if
you are not interested in them). Not reading them means your communication
socket with the webserver will be clobbered soon or later.

If you do not want to change your code you can use the uWSGI
--post-buffering option that will automatically buffer post data in memory
(or to disk).

-- 
Roberto De Ioris
http://unbit.it

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Race and Locking? was Re: Duplicate rows with same key in DB?

2012-06-23 Thread Cal Leeming [Simplicity Media Ltd]
Also - get_or_create doesn't always prevent a race condition if you have
high traffic.. depending on your code+stack.

I already did a post about this a while back:
http://markmail.org/message/j3qr2y26i5uk7c3z


On Sat, Jun 23, 2012 at 8:57 AM, Melvyn Sopacua wrote:

> On 23-6-2012 9:52, Melvyn Sopacua wrote:
> > On 23-6-2012 0:02, ydjango wrote:
> >>
> >> Thank you, I also believe it is Race condition. I do not want to use
> >> get_or_create as I like to have control over DB writes and updates. I
> will
> >> try Unique_together and catch the integrity error exception as Kurtis
> >> suggested or check again before doing save().
> >>
> >> or just thinking aloud, Is there a way to acquire a lock which can
> >> serialize any other requests which have same "a" and "b" values?
> >
> > unique_together + transaction middleware.
> > https://docs.djangoproject.com/en/1.4/topics/db/transactions/
>
> Ok, hit send too soon. No, this doesn't give you access to other
> requests as far as I can tell, but operations depending upon the insert
> operation succeeding are now part of a transaction and can be handled
> more gracefully inside django as well, pending the result of the
> transaction.
>
> --
> Melvyn Sopacua
>
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Send message to SMS Gateway

2012-06-23 Thread Cal Leeming [Simplicity Media Ltd]
>From the way your email is worded, I think you are looking at doing this
the wrong way.

Look at using something like BulkSMS - or an SMS USB device.

Don't start trying to figure out how SMPP and SS7 works, you'll only give
yourself a head ache and it absolutely wouldn't be relevant to you.

Cal

On Sat, Jun 23, 2012 at 3:11 AM, Setiaman  wrote:

> Hi,
>
> I want to create a web app to send the message to SMS Gateway.
> Try to google the suggested way is to use SMPP protocol.
> But I can't find any easy package to send message thru SMPP.
>
> Can any body give a pointer?
>
>
> Rgrds,
> Setiaman
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Race and Locking? was Re: Duplicate rows with same key in DB?

2012-06-23 Thread Melvyn Sopacua
On 23-6-2012 9:52, Melvyn Sopacua wrote:
> On 23-6-2012 0:02, ydjango wrote:
>>
>> Thank you, I also believe it is Race condition. I do not want to use 
>> get_or_create as I like to have control over DB writes and updates. I will 
>> try Unique_together and catch the integrity error exception as Kurtis 
>> suggested or check again before doing save().
>>
>> or just thinking aloud, Is there a way to acquire a lock which can 
>> serialize any other requests which have same "a" and "b" values?
> 
> unique_together + transaction middleware.
> https://docs.djangoproject.com/en/1.4/topics/db/transactions/

Ok, hit send too soon. No, this doesn't give you access to other
requests as far as I can tell, but operations depending upon the insert
operation succeeding are now part of a transaction and can be handled
more gracefully inside django as well, pending the result of the
transaction.

-- 
Melvyn Sopacua


-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Race and Locking? was Re: Duplicate rows with same key in DB?

2012-06-23 Thread Melvyn Sopacua
On 23-6-2012 0:02, ydjango wrote:
> 
> Thank you, I also believe it is Race condition. I do not want to use 
> get_or_create as I like to have control over DB writes and updates. I will 
> try Unique_together and catch the integrity error exception as Kurtis 
> suggested or check again before doing save().
> 
> or just thinking aloud, Is there a way to acquire a lock which can 
> serialize any other requests which have same "a" and "b" values?

unique_together + transaction middleware.
https://docs.djangoproject.com/en/1.4/topics/db/transactions/
-- 
Melvyn Sopacua


-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.