django templates

On workin with my django project, I learnt new things like how to link template to view directly and using forms and using html the right way.
All you need to link a view from template is just pass the view in your action or link. For eg. I have a view called customer and i wish it to be called dierectly through my homepage.
In my homepage, I have a button named as add customer, and the code can be given as:

Add Customer

where customer is the name of a view in my views.py file

The other thing I want to share is to print a homepage, we need to write a seperate view. All we need is to import the generic views from django in urls.py
Example, I want to display a homepage having the name hpage.html, Edit the urls.py file as:

from django.views.generic.simple import direct_to_template
...

urlpatterns = patterns('',
url(r'^$', direct_to_template, {'template': hpage.html}),
...
)

daily diary- new work

I was really sad at not getting my things done… how hard i tried the results were again the same almost equal to zero but there was no time that i had a feeling that all i am doing or all i have done was in vain may be the output was zero but atleast i learnt what not to do and ehat not to search… presently i am working on my re-entry task and its been almost 2 months that i have got the task stil its no where near to completion.. but i am trying all these days and today i am writing here is that i feel i should so that when i read this again i can again encourage myself to do more. seriously speaking i did a lot in my 6 week training but everything i did was quantitatively large that it became qualitatively small but in these two monts of reentry task, I have learnt all that i should have in my training time … neverthless today i worked on django forms and i have also started doing things on shell. I have learnt a little how to search effectively and which website to choose. I have started posting my questions on django mailing list and stackoverflow… recently installed phpmyadmin and i am working on it. i am really glad with my training period. That was the most fruitful time of my life till now no matter how depressed i was at that time.

training …summarised

May be it was the official last day of training. Greatdevelopers is really a family, I learnt a lot of things which were not possible anywhere. I thank Rai sir for guiding me for right path also Inderpreet Singh and Piyush Prakash. I was working on Librehatti project. We all started with poll app.(Django )ie python framework. Briefly, it is actually very good framework because it works as MVC ie model , view, control. this means that everything have separate files may it be html or views, urls, mmodels etc. After the poll app we were assigned the task to build our own app on our own. We got the deadline of only two hours … I got a series of errors by series I mean chain solved errors one after the another, it was so hectic. At the same day my parents came as we had to leave for some family function and I was in hurry to leave. 😛 and did my half of the app. and due to no connection afterwards I was not able to upload my work.  this was the end of second week of training. Then we started with Librehatti actually still I worked with the help of different apps, making the dynamic tables ie. only displaying the values that user wants, user selects through checkboxes and by clicking submit, the table was shown, then we used search query, it was so hectic as we were initially not able to understand our task and telling the truth, after that I worked  bit less but I worked… things were becoming more clear to me…. Librehatti was great and the mentors were also great .  Alongside we learnt the things which were actually not related to our project the most I liked was phonegap… making android apps from a simple html code. Open jump also seems interesting, Github was the thing that I came to know at GD 😛 . The way of my training was best, it was our wish to work on external forces :P, no spoon feeding, sometimes it was depressing too 😦 … but on the bigger side, it was actually best. I faced lpots of ups and downs but I never wished to quit. Learnt ways for time management … and many more things that make our life easier and fruitful. Actually now we will be out of GD and will be performing entry task, as I do not want to end my journey at TCC with GD.

At the end I thank every person of our GD family.

ON-OFF switch for consciousness

ONE moment you’re conscious, the next you’re not. For the first time, researchers have switched off consciousness by electrically stimulating a single brain area.

Scientists have been probing individual regions of the brain for over a century, exploring their function by zapping them with electricity and temporarily putting them out of action. Despite this, they have never been able to turn off consciousness – until now.

Although only tested in one person, the discovery suggests that a single area – the claustrum – might be integral to combining disparate brain activity into a seamless package of thoughts, sensations and emotions. It takes us a step closer to answering a problem that has confounded scientists and philosophers for millennia – namely how our conscious awareness arises.

 In a study published last week, Mohamad Koubeissi at the George Washington University in Washington DC and his colleagues describe how they managed to switch a woman’s consciousness off and on by stimulating her claustrum. The woman has epilepsy so the team were using deep brain electrodes to record signals from different brain regions to work out where her seizures originate. One electrode was positioned next to the claustrum, an area that had never been stimulated before.

you can check the link 

http://www.lifeadvancer.com/have-mind-control-scientists-found-the-switch-to-turn-off-consciousness

Work in Progress

When Librehatti work starts coming to end, there are some new challenges we face. We got the deadlines but the suspense report is becoming suspense or us. I was getting a bit lesser work than my other teammates as we are in hurry to finish our work. I made template and a view (only for my template) . Sitting in MBA block was fun .today I was with my friends at recess time rather than being at hostel because I was not willing to eat food and ants.  We were supposed to have presentation on Latex after break, and  😛 but there was another presentation on GIS , locating and creating 3D terrains through computer software. We got new work on Latex, creating magazines and it seems to be interesting..

And I am working hard to work hard 😛 😛

May god bless all .

A shocking Day

I was feeling a bit homesick and due to that my parents were here at college just for me … and it felt so good to me … I was happy and then it was the ime for a shock…. I was checking my mails and suddenly I figured a mail  notifying me that I am successfully unsubscribe from greatdevelopers.. 😦 😦 I was afraid that how it was possible .. I called saloni then divyanshi and they were like may be Rai Sir unsubscribed me from mailing list… and in this shock, I changed the whole setting of my room 😛 the end of the day is full tension, I hope everything goes well , the tasks of LibreHatti search assigned to us were completed and I hope everything goes well

May God bless everyone

Polishing the concepts…. :)

Today it was raining at morning and I went TCC at time, college looked too good and a peaceful place.. Our team completed the work of LibreHatti search and today there were little polishing amendments left. Though I am getting lot of errors but yes I am learning from them. Today we also had the presentation on Latex and it was good, also, I learnt the previous code that (we did yesterday), learnt some HTML-CSS concepts, except the coding part I also worked on my vocabulary and some logics.

Interesting day..

I completed my app , learnt new things and new ways to do things… all tasks were done and then we were assigned the tasks , I am assigned the task to create an app so that we can show the items selected by the user and to the user. I am working on it with Saloni and surely we will not be able to submit our work before deadline.. coz its over 😛 sorry to say this .. 😦 . But some topics are relly confusing me.. time to get back to work..

May god bless all 🙂

LbreHattians attacked!!!!!

Today morning was just as the normal mornings… it was going very smooth… I reached TCC at 9:20, a bit late but the hall was getting cleaned, so we went to library , i was reading my django book, and suddenly we received a call notifying us to come to TCC asap, we rushed through and we were like startled because we were asked to create an app using django, and we got two hrs for that but there was a presentation on latex and sage, so we got a bit extra time but I was in a little hurry, coz I was going to meet my parents after so long, I wished I could run but at the same time I was worried about my task so I even skipped my lunch to finish the task on time, I faced a lot of problems like the very first one, I was not able to fill the entries in database just because of my little knowledge over SQL,and jasvir veera first was refused to help me even asked jaskaran veera to not to help, but after some time he helped me out and made me understand where I was wrong, finally I was able to run my server, but at the another step I don’t have the idea abpout what I did, but almost all my progress was lost, but at the end I made half of my app perfectly fine, and another half is left, which will be done in a short period of time, and then i rushed to hostel to meet my world, my parents, and enjoyed a lot.. I thank god for staying with me the every second of the day, and I wish that my wish come true so that my faith deepens more. God bless everyone.